Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Store the cert issued by a web server
- openssl s_client -showcerts -connect www.google.com:443 > www.google.com.pem
- # Convert it from PEM format to DER format
- openssl x509 -in www.google.com.pem -inform PEM -out www.google.com.der -outform DER
- # Import it into your keystore
- sudo /usr/java6/bin/keytool -import -alias www.google.com -file www.google.com.der -keystore /usr/java6/jre/lib/security/cacerts
- # The keystore password is by default "changeit"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement