Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    80
    Rep Power
    0

    Default invalid SHA1 signature file digest

    I have been trying to verify the Jar signing:

    jarsigner -verify -verbose -certs example.jar

    I got the following problem:

    jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for o
    rg/apache/log4j/net/DefaultEvaluator.class

    I got some suggestions about using -digestalg SHA-1 but I do not know where I should put this statement!

    I hope you can help me to fix the problem.

  2. #2
    Join Date
    Jan 2010
    Posts
    80
    Rep Power
    0

    Default Re: invalid SHA1 signature file digest

    Here is the solution:

    Java Code:
    jarsigner -keystore mykeystore -digestalg SHA1 jarfile alias
    To verify:

    Java Code:
    jarsigner -verify -verbose -certs jarfile

Similar Threads

  1. Replies: 1
    Last Post: 11-02-2011, 09:39 AM
  2. Replies: 0
    Last Post: 09-10-2011, 08:34 AM
  3. Replies: 0
    Last Post: 06-23-2011, 01:59 PM
  4. SHA1 hash that returns itself
    By gabrielkfl in forum New To Java
    Replies: 0
    Last Post: 04-10-2011, 07:33 PM
  5. MD5 and SHA1 of a string?
    By bobleny in forum New To Java
    Replies: 0
    Last Post: 04-22-2008, 03:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •