Thursday, February 7, 2013

Keytool

keytool -importkeystore -srckeystore host.p12 -destkeystore host.jks -srcstoretype pkcs12

Adding cert to java keystore


keytool -import -file /tmp/test.crt -storepass changeit -keystore  /java/jre/lib/security/cacerts -alias aliasname

keytool -list -storepass changeit -keystore  /java/jre/lib/security/cacerts

No comments:

curl and cacert

curl -v --cacert cacert.pem https://www.example/cgi-bin/f ile.xgi -I -X POST