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.
$ echo 01 > MyCA.srl
This command creates a serial file with an initial HEX value 01. OpenSSL uses this file to track the serial numbers of certificates it creates. The serial file is typically given the same name as the CA with the extension .srl.
$ openssl req -new -out MyCert.csr
This command creates a
privkey.pem file containing the RSA private key of that certificate and
protected by a password.$ 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