Creating & manipulating SSL Files using openSSL
Creating and manipulating SSL files using openSSL
OpenSSL Download Link - http://gnuwin32.sourceforge.net/packages/openssl.htm
Run the commands from a cmd window.
- Generate a new private key and Certificate Signing Request
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
you will be asked to enter the following details:
Country Name (2 letter code) [GB]:US State or Province Name (full name) [Berkshire]:Newark Locality Name (eg, city) [Newbury]:Delaware Organization Name (eg, company) [My Company Ltd]:My Company Name Organizational Unit Name (eg, section) []:Security Common Name (eg, your name or your server's hostname) []:www.domain.com Email Address []: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:
- Generate a certificate signing request (CSR) for an existing private key
openssl req -out CSR.csr -key privateKey.key -new
- Convert a CRT certificate file and a private key to PFX file
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt