Exporting the Certificate

The command can be used to export the self-signed certificate for the bskey alias from the keystore to a file called bskey.cert.

C:\Users\Administrator>keytool -export -file bskey.cert -keystore c:\apps\bs.jks -alias bskey -v Enter keystore password: Certificate stored in file <bskey.cert>