Sunday, May 20, 2012

To generate a simple keystore that can be used to sign a document

To generate a simple keystore that can be used to sign a document, run keytool with the following options:
keytool -genkey -keyalg RSA -alias "Your Name" -keypass yourpass -keystore keystore.ks -dname "cn=Your Name, c=US"

No comments: