Create a certificate
This procedure allows you to create a certificate.
In this procedure you use the openssl tool to perform the certificate creation tasks.
SecurityCertificates in practice | Parent topic: Certificates in practice |
This procedure allows you to create a certificate.
In this procedure you use the openssl tool to perform the certificate creation tasks.
$ openssl req -new -out MyCert.csr
Follow the instructions to create the
CSR. This command also creates a privkey.pem file containing the RSA private
key of the CSR certificate that is protected by a password you provide.$ openssl rsa -in privkey.pem -out MyCert.pem
$ openssl x509 -in MyCert.csr -out MyCert.crt -req -signkey MyCert.pem
-CA MyCA.crt -CAkey MyCA.pem -days 365
The CSR file is also used to encrypt messages that only its corresponding private key can decrypt.