经常忘记这些东西,在这里记一下:
导入证书:
C:\Program Files\Java\jdk1.7.0_67\jre\bin>keytool -import -alias scala -keystore ../lib/security/cacerts -file E:/client.crt
查看证书:
C:\Program Files\Java\jdk1.7.0_67\jre\bin>keytool -list -v -keystore ../lib/security/cacerts -alias scala
删除证书:
C:\Program Files\Java\jdk1.7.0_67\jre\bin>keytool -delete -keystore ../lib/security/cacerts -alias scala