Friday, 9 November 2012

Using ikeycmd

Create a keystore 
/opt/bpm/ihs/java/jre/bin/ikeycmd -keydb -create -db /opt/ihs/ssl/ihskeystore.kdb -pw mypassword -type cms -expire 3650 –stash 

Export a keypair and directly import into another keystore 
/opt/ihs/java/jre/bin/ikeycmd -cert -import -db /tmp/certs/myKeyPair.jks -pw mypassword -label key -type jks -target /opt/ihs/ssl/ihskeystore.kdb -target_pw mytargetpassword -target_type cms

List keystore entries
/opt/ihs/java/jre/bin/ikeycmd -cert -list -type jks -db /tmp/certs/myKeyPair.jks -pw mypassword 

List keystore entry details
/opt/ihs/java/jre/bin/ikeycmd -cert -details -label myLabel -type jks -db /tmp/certs/myKeyPair.jks -pw mypassword 

No comments:

Post a Comment