PDA

View Full Version : Self Signed Certificate


satishkumar5889
Nov 28, 2012, 09:47 PM
Hi,

I need to generate a self signed ceritficate.

After I executing the command

·'keytool -genkey -v -keystore MyKeyStore.pfx -storepass MyPassword –storetype pkcs12 -alias MyServer -keyalg rsa -keysize 1024 -dname "CN=MyCommonName" -keypass MyPassword'

·'keytool -selfcert -v -keystore MyKeyStore.pfx -storepass MyPassword -storetype pkcs12 -alias MyServer -keyalg rsa -validity 7305'

I got the keystore and Mykeystore in my defined path. My question is I need to add certicate to my application to act as a ssl server. For testing I prefer self signed certificate.

But I have not seen .cer or .crt file in any of the path . Please let me know how to create the .cer or .crt file.or else whether I can use .keystore as a ceriticate if yes then how could I implement this.

Thanks