It typically OpenSSL comes pre-installed on Linux
- Open Terminal
Most Linux distributions come with OpenSSL pre-installed. - Generate the Private Key
openssl genrsa -out myprivatekey.key 2048 - Create the Certificate Signing Request (CSR)
openssl req -new -key myprivatekey.key -out myrequest.csr
Enter the information for your organization or domain as prompted. - Generate the Self-Signed Certificate
openssl x509 -req -days 365 -in myrequest.csr -signkey myprivatekey.key -out mycertificate.crt - Verify
Your certificate (mycertificate.crt
) and private key (myprivatekey.key
) are now created.