How To Create a Self-Signed SSL Certificate for Nginx on debian
Article ID: 217 | Rating: 5/5 from 1 votes | Last Updated: Fri, Jun 8, 2018 at 1:10 AM
How to Create a SSL Certificate on ezeelogin jump server for Nginx on debian 8
Create a Self Signed Certificate
When we request a new certificate, we can specify how long the certificate should remain valid by changing the 365 to the number of days we prefer. As it stands this certificate will expire after one year.
With this command, we will be both creating the self-signed SSL certificate and the server key .
This command will prompt terminal to display a lists of fields that need to be filled in.Fill out the prompts appropriately. The most important line is the one that requests the Common Name (e.g. server FQDN or YOUR name). You need to enter the domain name associated with your server or, more likely, your server’s public IP address.
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New York
Locality Name (eg, city) :New York City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Bouncy Castles, Inc.
Organizational Unit Name (eg, section) :Ministry of Water Slides
Common Name (e.g. server FQDN or YOUR name) :server_IP_address
Email Address :admin@your_domain.com
Both of the files you created will be placed in the appropriate subdirectories of the /etc/ssl directory.
Configure Nginx to Use SSL
Let’s create a new Nginx configuration snippet in the /etc/nginx/snippets directory.