How to Create Self Signed Certificates on Ubuntu 20.04 LTS


To generate self-signed SSL/TLS certificate on Ubuntu to use with Nginx or Apache web workers locally. A self-signed SSL testament is an authentication endorsed by the maker as opposed to a believed outsider declaration authority (CA). Self-signed crt can have a similar degree of encryption as the believed CA marked SSL authentications.


In this post, We will generate Self-signed certificate on ubutnu linux.


Step 1: Install Openssl   


We need to install the opensll package to generate the self-signed certificate on ubuntu, Use the following command for the same.


sudo apt-get update
sudo apt-get install openssl -y

Step 2: Generate the Self-Signed Certificate 


To generate the  new Self-Signed SSL Certificate, utilize the openssl req order. The following is the order to create a SSL/TLS endorsement for the area.


openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out example.crt -keyout example.key


You should fill the few information to completed the self-signed.



We have successfully generate the openssl certificate using openssl on ubuntu linux, Still you have any question, Please leave a message below:-

How to Create Self Signed Certificates on Ubuntu 20.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top