Certificate SSL(Secure Sockets Layer) is encryption technology between clients and Server when transfer data. Make data secure and safe. It’s difficult to exploit from hackers. You can apply SSL to many applications such as SSL for FTP, VPN, Mail Service….
In this article, we will introduce to you guys How to create a SSL Certificate on Nginx for Centos:
1.Create Folder for Certificate
Go to Folder ssl
2.Create Server Key And Certificate Signing Request
Create private server key, ***Note: keep pass in your mind when register
Create Certificate signing request
Next, you must fill information like below template, Keep in mind that , must match with your domain name or IP address, challenge password and optional company name will be left blank .
# cp server.key server.key.org # openssl rsa -in server.key.org -out server.key
4. Sign SSL Certificate
Register certificate will be expired in 1 year
5. Setup Certificate
Open SSL Config
Edit HTTPS Server like below information:
Go to https://your_domain.com, you will see it work well, it means that you configured successfully