I exported a certificate from an https url that my java API needs to connect with.
Then imported to java jdk cacert as follows:
clicked the padlock icon a the begining of the url on chrome
certificate > details > copy to file
selected x.509 base 64 > saved the file
installed the certificate on cacerts:
keytool -import -alias testcert1 -keystore "c:\jdk1.7.0_80\jre\lib\security\cacerts" -file testcert1.cer
Ran the following command to read cacerts:
keytool -list -keystore c:\jdk1.7.0_80\jre\lib\security\cacerts
As a result it lists several certificates (moslty already come by default with the jdk).
It also shows the newly added certificate among them.
Then I executed the same process but instead o choosing a base 64 certificate on step 3, I choose x.509 DER.
Then when I read the cacerts file (step 5) just one certificate is displayed (the newly added one).
All the other certificates that were there already are not displayed anymore.
Wondering if that is an issue in case the DER version is used in my app.
Asking that because my API is working only if the DER version is used. It doesn't work with the base 64 version.
Thanks.