Self signed Open SSL Certificate:
-To Implement Https on any webpage, first we need SSL certificate. This SSL certificate have multiple extension format like ( .pem, .key, .crt etc)
-To register SSL certificate or to get self signed SSL certificate, we need to generate Self signed SSL key by using following commands in command prompt console.
openssl
genrsa -out sample.key 4096
openssl
req -new -x509 -days 365 -key sample.key -out sample.crt
Example:
Country Name (2 letter code) [GB]: IN
State or Province Name (full name) [Berkshire]: Tamil Nadu
Locality Name (e.g., city) [Newbury]: Chennai
Organization Name (e.g., company) [My Company Ltd]:https://example.com
Organizational Unit Name (e.g., section) []: Development
common Name (e.g., your name or your server's hostname) []: Sample (https://sample.com)
Email Address []
Open SSL Commands:
Generate a new private key and Certificate Signing Request openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate for more info) openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyoutprivateKey.key -out certificate.crt
Generate a certificate signing request (CSR) for an existing private key openssl req -outCSR.csr -key privateKey.key -new
Generate a certificate signing request based on an existing certificate openssl x509 -x509toreq -in certificate.crt -out CSR.csr -signkey privateKey.key
Remove a passphrase from a private key openssl rsa -in privateKey.pem -outnewPrivateKey.pem
Generate a new private key and Certificate Signing Request openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate for more info) openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyoutprivateKey.key -out certificate.crt
Generate a certificate signing request (CSR) for an existing private key openssl req -outCSR.csr -key privateKey.key -new
Generate a certificate signing request based on an existing certificate openssl x509 -x509toreq -in certificate.crt -out CSR.csr -signkey privateKey.key
Remove a passphrase from a private key openssl rsa -in privateKey.pem -outnewPrivateKey.pem
No comments:
Post a Comment