Jarsigner: certificate chain not found for

前端 未结 4 1526
日久生厌
日久生厌 2021-02-07 00:00

I have imported a certificate into a private ~/.keystore file:

keytool -list
Enter keystore password:

Keystore type: JKS
Keystore provider: SUN

Yo         


        
4条回答
  •  长发绾君心
    2021-02-07 00:20

    I had this error, but it was a different issue. When you send off a CSR to a CA it comes from a particular private key with a particular alias that you generated. When you receive the cert back again you must import it using the same alias name or else the two certs will not be wired together.

    If you have done it right, when you use keytool -list -v you wil see a single entry with the alias name, of type

    Entry type: PrivateKeyEntry
    Certificate chain length: 3
    

    For the entry. If you have done it wrong the you will have two entries

    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    

    and

    Entry type: trustedCertEntry
    

提交回复
热议问题