Android Tutorial jarsigner error: java.security.SignatureException: private key algorithm is not compatible

Discussion in 'Tutorials & Examples' started by Erel, Dec 27, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Private sign keys created with B4A v7.80 or less together with Java 8u151+ will fail with the above error message. Note that it does not affect existing keys.
    It is related to a change in the default key size.
    It is fixed for the next update of B4A.

    As a workaround you can switch to Java 8u144: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

    Or create the key from the command line:
    Code:
    keytool -genkey -dname "CN=Unknown,O=Unknown,C=Unknown" -keystore mykeystore.keystore -keysize 1024 -alias b4a -validity 14000 -keypass 123456 -storepass 123456
    123456 that appears twice should be replaced with the password.
     
  2. konradwalsh

    konradwalsh Active Member Licensed User

    Since I am on v7.80 and v8.00 has been released but I didnt receive an email, I assume there wont be an in between update to fix this issue? I guess I am not eligible for v8.00
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Sorry but no. However the workaround explained in the first post is quite simple.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice