openssl – part 1

1) Generate an RSA key with 2048 bits.

$ openssl genrsa -out server.key 2048

2) Create an X509 self signed certificate(for development purposes and …)

$ openssl req -x509 -new -nodes -key server.key -sha256 -days 365 -out server.pem

3) Create a PKCS12 key store from private key and certificate

$ openssl pkcs12 -export -name server.cer -in server.pem -inkey server.key -out server.p12

Leave a Reply

Your email address will not be published. Required fields are marked *