Subtotal | $0.00 |
During import, you might encounter the following error: Error: "java.lang.Exception: Input not an X.509 certificate."
Usually, this error occurs during the import of the end-entity certificate to the keystore.
keytool -import -trustcacerts -alias 'alias' -file certificate.crt [.p7b, .cer] -keystore 'your keystore'.jks
In this case, the points shown below should be double-checked:
Using PKCS#7, the file should be formatted like the example shown above as well, however the header and footer should be -----BEGIN PKCS7 ----- and -----END PKCS7 ----- . If the formatting is corrupted, use this tool to correct it. Once the code is pasted there, press “Decode” and copy whole code properly formatted. Save changes before exiting nano.
If the import results in error again, check the below points.
Once the correct alias is found, retry the import using the exact alias.
If the error persists, check the point below.
Need help? We're always here for you.