Adding SSL Certificate to Java Keystore

Hi All,

 

As per Appian's below knowledge base article, we are trying to add SSL certificate to jave key store.

https://community.appian.com/support/w/kb/403/kb-1187-the-wsdl-cannot-be-processed-because-the-remote-server-certificate-is-invalid-unable-to-find-valid-certification-path-to-requested-target-error-thrown-when-making-web-service-calls

 

The command we are running is below along with Error:

C:\Program Files\Java\jdk1.8.0_101\bin>keytool -import -alias dvtcapp01 -keystore "C:\Program Files\Java\jre1.8.0_101\lib\security\cacerts" -file "D:\Certificate\dv-cert.pfx"
Enter keystore password:
keytool error: java.lang.Exception: Input not an X.509 certificate

In the above mentioned command, "dvtcapp01" is our computer name & we are using default password "changeit".

 

As we looked into other articles & changed the certificate from pfx to pem and tried to import that into key store  by using the  but encountered same issue.

C:\Program Files\Java\jdk1.8.0_101\bin>keytool -import -alias dvtcapp01 -keystore "C:\Program Files\Java\jre1.8.0_101\lib\security\cacerts" -file "D:\Certificate\dv-cert.pem"
Enter keystore password:
keytool error: java.lang.Exception: Input not an X.509 certificate

 

Can anyone please guide where our issue lies & guide us how can we fix it?

 

Thanks

RishuB

  Discussion posts and replies are publicly visible