JOIN OUR AFFILIATE NETWORK

Join our affiliate network and become a local SSL expert

♦ learn more about our program ♦
Menu
picture of tbs certificates
picture of tbs certificates
Certificates
Our products range
Partners
Support
Focus


java.lang.exception: input not an x.509 certificate

If you get a "java.lang.Exception: input is not a X.509 certificate" error, it can mean 2 things:
  • You provided an alias name that does not exist.Do keytool -list -v -keystore [keystore name] to find the correct name


  • Your keytool is too old to understand the PKCS7 format. Upgrade your JDK.
Note: for a manual installation, follow the instructions:
  • Install the certificate manualy. To do so go on your certificate status page
    • "See the certificate" button
    • Download the certificate in X509 format
    • install it with:
      keytool -import -trustcacerts -file cert-xxxxxxxxxx-yyyyy.cer -alias [alias-name] -keystore [keystorename]
    • Then click on "See certification chain"
    • Put each of the displayed pieces in a file and import them:
      keytool -import -trustcacerts -file FILE.TXT -alias [alias-name] -keystore [keystorename]
      Do not re-import the certificate if the tool indicates that it is already present.
Reminder:
  • alias-name: name you defined when generating your CSR / private key
  • keystorename: name of the file containing the keystore (a keystore is a repository of security certificates, either Certification Authority Certificates or Public Key Certificates, private key, certification chain....)