In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to use Let's Encrypt on Ubuntu18.04 and 16.04LTS to protect Nginx. I hope you will learn a lot after reading this article. Let's discuss it together.
Step 1: prerequisites
Before I begin this task, I assume that I have:
Use the sudo privilege shell to access the running Ubuntu system, with the domain name registered and pointing to the public IP address of the server. For this article we use example.com and www.example.com, which points to our server, runs the nginx web server, and configures virtualhost (for example, .com) and www.example.com for port 80.
Step 2: install the let's encrypt client
You can download the certbot auto-let's encrypt client and save it in the / usr/sbin directory. Use the following command to do this.
$sudo wget https://dl.eff.org/certbot-auto-O / usr/sbin/certbot-auto$ sudo chmod axix / usr/sbin/certbot-auto
Step 3: publish ssl for nginx
Let's encrypt automates domain validation (DV) in multiple challenges. Once the certification authority (CA) has verified the authenticity of your domain, a SSL certificate will be issued.
You don't need to create a virtualhost for ssl/https, let's let's encrypt to create it. You only need to create a virtual host for port 80.
$sudo certbot-auto-nginx-d example.com-d www.example.com
The above command prompts for an email address that is used to send email alerts related to SSL renewal and expiration. In addition, there are a few questions. When finished, it will issue a SSL certificate and create a new virtual host profile on your system.
Step 4: configure SSL automatic renewal
Finally, configure the following command on the server crontab to automatically renew the SSL certificate as needed.
02 * sudo / usr/sbin/certbot-auto-Q renew has finished reading this article. I believe you have some understanding of how to use Let's Encrypt on Ubuntu18.04 and 16.04LTS to protect Nginx. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.