Let's encrypt generate free HTTPS certificate Ubuntu+tomcat+nginx+let ' s encrypt

Source: Internet
Author: User
Tags certbot letsencrypt

1. Download let ' s encrypt

2. Generate the key, call before you need to stop Nginx

Certbot certonly--standalone-d www. domain name 1.com-d www. domain name 2.com

The build succeeds with the following prompts

IMPORTANT NOTES:-congratulations! Your certificate and chain has been saved   at/etc/letsencrypt/live/"Here is your domain name"/FULLCHAIN.PEM. Your cert   would expire on "here is the expiry time". To obtain a new or tweaked version of this   certificate on the future, simply run Certbot-auto again.   to non-interactively renew *all* of your certificates, run   "Certbot-auto Renew"-If you like Certbot, please cons Ider supporting our work by:    donating-Isrg/let ' s Encrypt:   https://letsencrypt.org/donate   donating to EFF :                    Https://eff.org/donate-le

3. Configure Nginx

Listen 443 ssl;ssl_certificate/etc/letsencrypt/live/"Here is your domain name"/fullchain.pem;ssl_certificate_key/etc/letsencrypt/ live/"Here is your domain"/privkey.pem;ssl_protocols TLSv1 TLSv1.1 tlsv1.2;ssl_prefer_server_ciphers on;ssl_ciphers AES256+ Eecdh:aes256+edh:!anull;listen [::]:443 SSL Ipv6only=on;

4. Restart Nginx

Nginx-s Reload

5. redirect HTTP access to HTTPS

server {        listen;        SERVER_NAME "Here is your domain name";        Rewrite ^ (. *) https://$server _name$1 permanent;}


Let's encrypt generate free HTTPS certificate Ubuntu+tomcat+nginx+let ' s encrypt

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.