java.security.KeyStoreException

KeyStore instantiation failed

Samebug tips1

Check your certificates, you need a X.509 certificate pair from the AWS website, you can't make it in the management console. It's in account -> Credentials


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web21

  • via ejbca by theanhpv
    ,
  • Stack trace

    • java.security.KeyStoreException: KeyStore instantiation failed at java.security.KeyStore$Builder$2.getKeyStore(KeyStore.java:1707) at org.ejbca.util.keystore.KeyStoreContainerP11.getInstance(KeyStoreContainerP11.java:89) at org.ejbca.util.keystore.KeyStoreContainerP11.getInstance(KeyStoreContainerP11.java:60) at org.ejbca.util.keystore.KeyStoreContainerFactory.getInstance(KeyStoreContainerFactory.java:55) at org.ejbca.ui.cli.HSMKeyTool.doIt(HSMKeyTool.java:173) at org.ejbca.ui.cli.HSMKeyTool.execute(HSMKeyTool.java:290) at org.ejbca.ui.cli.PKCS11HSMKeyTool.execute(PKCS11HSMKeyTool.java:47) at org.ejbca.ui.cli.ClientToolBox.executeIfSelected(ClientToolBox.java:40) at org.ejbca.ui.cli.ClientToolBox.main(ClientToolBox.java:70) Caused by: java.security.cert.CertificateParsingException: X.509 Certificate is incomplete: subject field is empty, and SubjectAlternativeName extension is absent at sun.security.x509.X509CertInfo.verifyCert(X509CertInfo.java:754) at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:727) at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:152) at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1729) at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:179) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:90) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305) at sun.security.pkcs11.P11KeyStore.loadCert(P11KeyStore.java:1196) at sun.security.pkcs11.P11KeyStore.mapLabels(P11KeyStore.java:2440) at sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:838) at java.security.KeyStore.load(KeyStore.java:1219) at java.security.KeyStore$Builder$2$1.run(KeyStore.java:1677) at java.security.AccessController.doPrivileged(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,