w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Java SSL certificate import

The short answer is you have to import the certificate when its signing authority is not in the certificate store. Use

keytool  -v  -list  -keystore [/path/to/]cacerts

to see which ones are there. Keep in mind that Oracle's idea of a well-known signing authority is not necessarily the same as yours.

...
Alias name: comodoaaaca
Creation date: May 2, 2006
Entry type: trustedCertEntry

Owner: CN=AAA Certificate Services, O=Comodo CA Limited, L=Salford,
ST=Greater Manchester, C=GB
Issuer: CN=AAA Certificate Services, O=Comodo CA Limited, L=Salford,
ST=Greater Manchester, C=GB
...




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.