Create a keystore with a self-signed certificate, using the keytool command : KeyStore « Security « Java






Create a keystore with a self-signed certificate, using the keytool command

     

keytool -keystore mySrvKeystore -keypasswd 123456 -genkey -keyalg RSA -alias mycert

   
    
    
    
    
  








Related examples in the same category

1.Exporting a Certificate to a File
2.Listing the Aliases in a Key Store: A key store is a collection of keys and certificates.
3.Listing the Aliases in a Key Store using keytool:
4.Retrieving a Key Pair from a Key Store
5.Import a key/certificate pair from a pkcs12 file into a regular JKS format keystore
6.This program signs a certificate, using the private key of another certificate in a keystore.
7.This class imports a key and a certificate into a keystore