Search Unity

APK signing failed

Discussion in 'Unity Build Automation' started by mshiro, Mar 13, 2015.

  1. mshiro

    mshiro

    Joined:
    Dec 6, 2012
    Posts:
    3
    Hello,

    I'm getting the following error:

    jarsigner error: java.security.SignatureException: private key algorithm is not compatible with signature algorithm.

    My android keystore signature algorithm is SHA1withDSA.
    Can I set the altorithm option of jarsigner?
     
    Last edited: Mar 13, 2015
  2. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    Yes when you generated the keystore you can pick which algorithm it's generated with. So basically, no you can't change it as it should be using SHA1 with RSA.
     
  3. mshiro

    mshiro

    Joined:
    Dec 6, 2012
    Posts:
    3
    No, I cannot change keystore. APK is already uploaded to Google Play.
     
  4. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    We look into this issue, stay tuned! :)
    For the moment I can recommend using UCB for testing and finalise the .apk with the algorithm you use by making a local build!
     
  5. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    @mshiro We have fixed the issue, would you please try it again and let us know if it works properly now?
     
  6. mshiro

    mshiro

    Joined:
    Dec 6, 2012
    Posts:
    3
    Thanks! I confirmed that had been fixed this issue.
     
    David-Berger likes this.