HTTPS Certificate expiration issues

Source: Internet
Author: User
Tags certbot

This is an article that was previously configured with a certificate, and a valid article that updates the certificate

The recent Web site's HTTPS certificate has expired, resulting in the inability to provide services externally, with the suspicion that the Automatic Updates configured at that time did not work.

Then to the background to update the HTTPS certificate, but encountered a problem, the use of specific commands and error messages:

sudo certbot renew--dry-run

Set the ' server_name ' directive to use the Nginx installer. Skipping

It seems that automatic update is not possible, continue the new method

1.sudo Service Nginx Stop

This will stop the Nginx service in advance, so as not to be able to update later because of occupation

2.sudo Certbot--force-renewal

Performing this step will force the update of the certificate, there will be an option in the process, which one is forgotten, it will need to be confirmed in the future. After the execution of this command, 2 more files were released Cloudappservice.top-001/fullchain.pem cloudappservice.top-001/ Privkey.pem. In fact, this time to see the reverse proxy file we configured before, the two latest files have been automatically updated to replace the original certificate file.

3. Restart the Nginx service

sudo cerbot nginx start

At this point, it is already possible for me to visit my website again. Just explain why the configuration of the previously configured Automatic Update certificate is not in effect?

HTTPS Certificate expiration issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.