Wednesday, December 16, 2015

Java Keytool Commands for Importing Certificates


Java Keytool Commands for Importing Security Certificates:


1. Get the client Security Certificate file and place at below location (cacerts)
             C:\Program Files\Java\jdk1.8.0_45\jre\lib\security


2. Need to import Security Certificatekey in  java's CACERTS file

Copy CERTIFICATE at C:\Program Files\Java\jdk1.8.0_45\jre\lib\security

TO Print cacerts :  keytool -list  -keystore cacerts
                                keytool -list  -v -keystore cacerts



3. check the entires count
password : changeit

4. Execute below in command line from above security folder

keytool -import -trustcacerts -alias ca-root-xxx -file ca-root-xxxx.crt -keystore cacerts

After successful import entries will be increased


No comments:

Post a Comment

Blog Archive