Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Users have a choice to use CA-signed certificates and self-signed certificates:

  • CA-signed certificates are issued by a know known and trusted Certificate Authority (CA).
  • Self-signed certificates are created by the user and are not related to a known CA.

...

The article explains how to create self-signed certificates by use of OpenSSL. This utility ships with Linux and most Unix environments and is available for Windows environments. The below examples are focused on Unix.

Anchor
root_ca_certificate
root_ca_certificate

...

Creating the Root CA Certificate

The first step includes to create the root-ca.key private key file and the root-ca.crt self-signed certificate file for the Root CA both in PEM format. This step is performed just once.

Code Block
languagebash
titleCreate Root CA Certificate
linenumberstrue
# step 1 Generate Certificate Authority (CA) Private Key
openssl ecparam -name prime256v1 -genkey -noout -out root-ca.key

# step 2: Generate Certificate Authority Certificate
openssl req -new -x509 -sha256 -key root-ca.key -out root-ca.crt

Anchor
server_certificate
server_certificate

...

Creating a Server Certificate

For a given server the second step next steps includes to create a private key and Certificate Signing Request (CSR). The resulting server certificate will be signed. 

...