How to create JKS file using java keytool?
Example:
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass mypassword -validity 360 -keysize 2048
In above Example selfsigned and keystore.jks are user defined
How to extract cer(public-key for client) file from JKS?
Example:
keytool -export -alias selfsigned -file certfile.cer -keystore keystore.jks
How to import certificate in to java cacert?
keytool -import -keystore -file %JAVA_HOME%\jre\lib\security\cacerts -file </path/filename.crt>
No comments:
Post a Comment