Obtaining test SSL certificates
This topic describes the procedure for obtaining test SSL (Secure Sockets Layer) certificates by using the OpenSSL commands.
Perform the following steps for obtaining test SSL certificates:
(Windows) Download and install open SSL on Windows.
(Linux) Download and install the open SSL package.
Linuxyum search openssl
yum install apr-util-openssl.x86_64Generate the SSL certificate by using the following command.
openssl req -x509 -sha256 -days <number of days for validation> -new -newkey rsa:2048 -nodes -out <Certificate Name>.pem -keyout <key Name>.pemCertificate and private key files are generated in a .PEM format.
To convert the certificate and private key files to a .DER format, run the following commands.
openssl x509 -in <Certificate name>.pem -inform pem -out <Certificate Name.der> -outform DER
changing key format.
openssl pkcs8 -topk8 -nocrypt -in <Key Name>.pem -inform PEM -out <key Name>.der -outform DER
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*