This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3676|Reply: 2

Nginx uses HTTPS to configure SSL certificates

[Copy link]
Posted on 5/7/2022 3:48:47 PM | | | |
Requirements: Nginx service installed on CentOS 7 to provide access to the host website, and wants to use HTTPS protocol for transmission encryption to improve the security of website communication. Alibaba Cloud has been using Alibaba Cloud's SLB service to configure certificates directly on Alibaba Cloud, which forwards to backend services through HTTP protocol, so I have never used Nginx to configure SSL certificates.

Review:

Install nginx service with CentOS source code
https://www.itsvse.com/thread-10058-1-1.html

OpenSSL is deployed from visa documents to IIS and SLB
https://www.itsvse.com/thread-10034-1-1.html

Import Alibaba Cloud SSL certificates to Amazon AWS ACM tutorial
https://www.itsvse.com/thread-7923-1-1.html

First of all, we need to apply for an SSL certificate, Alibaba Cloud, Tencent Cloud and other manufacturers can apply for free SSL certificates, this article takes Alibaba Cloud as an example, after the application is successful, select the Nginx server type certificate to download, as shown in the figure below:



on the server/data/middleware/nginx/confNew under the table of contentscertfile, and then upload the domain name certificate file to this directory, as shown in the figure below:



Nginx adds the following configuration:

Domain name resolution summary.

When we access the browser using the http protocol, we will be automatically redirected to the https URL 301, as shown in the figure below:



(End)




Previous:[Actual combat]. NET/C# sets a timeout time for a method
Next:Nginx adds HTTP/2 protocol enabled
Posted on 5/7/2022 10:49:36 PM |
Learn to learn...
 Landlord| Posted on 11/4/2025 6:46:07 PM |
Nginx disables TLSv1.0 and TLSv1.1 invalid solutions
https://www.itsvse.com/thread-10726-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com