Over a million developers have joined DZone.

Import Not Trusted Certificates Into JDK Security

·
// Useful for open an SSL connection to a not trusted site
// keytool is provided by Sun's JDK


keytool -import -trustcacerts -alias  -file  -keystore $JAVA_HOME/jre/lib/security/cacerts
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}