目录

Java Web Keytool Ssl

keytool导入/移除证书

1
2
3
4
5
6
7
导入:keytool -import -keystore "C:\Program Files (x86)\Java\jre6\lib\security\cacerts"  -storepass changeit -keypass changeit -alias emailcert -file test.cer
移除:keytool -delete -alias emailcert -keystore "C:\Program Files (x86)\Java\jre6\lib\security\cacerts" -storepass changeit

keytool -import -alias cacerts -keystore cacerts -file /etc/pki/tls/certs/sha256.cer -trustcacerts
keytool -import -alias otrskey -file otrs/server.crt

keytool -import -alias otrscert -keystore cacerts -file /etc/pki/tls/certs/server.crt -trustcacerts