Oneinstack installation Https-certbot

Source: Internet
Author: User
Tags certbot letsencrypt

Free HTTPS? Official installation Tutorial: https://certbot.eff.org/#centos6-nginx (The following is a description of the installation encountered);

  1. Download and modify file permissions
    wget https://dl.eff.org/certbot-auto && chmod a+x Certbot-auto

      

  2. Perform:
    1. ./certbot-auto--nginx certonly or./certbot-auto--nginx
      Error: XX package ..... Make an error;Yum UpdateUpdate;
      Error: General situation oneinstack The Nginx is not installed in the/etc directory:
      Warning:unable to check for updates. Saving debug Log to/var/log/letsencrypt/letsencrypt.logerror while running nginx-c/etc/nginx/nginx.conf-t.nginx: [EME RG] Open () "/etc/nginx/mime.types" failed (2:no such file or directory) In/etc/nginx/nginx.conf:15nginx:configuration F ile/etc/nginx/nginx.conf test failedcould not choose appropriate plugin:the Nginx plugin was not working; There may is problems with your existing configuration. The error was:misconfigurationerror (' Error while running nginx-c/etc/nginx/nginx.conf-t.\n\nnginx: [Emerg] Open () "/et C/nginx/mime.types "failed (2:no such file or directory) In/etc/nginx/nginx.conf:15\nnginx:configuration File/etc/ngin x/nginx.conf Test failed\n ',) the Nginx plugin is not working; There may is problems with your existing configuration. The error was:misconfigurationerror (' Error while running nginx-c/etc/nginx/nginx.conf-t.\n\nnginx: [Emerg] Open () "/et C/nginx/mime.types "failed (2:no such file or directory) In/etc/nginx/ngiNx.conf:15\nnginx:configuration file/etc/nginx/nginx.conf Test failed\n ',) 

      Solution: Execute:

      /certbot-auto--nginx--nginx-server-root=/usr/local/nginx/conf


    2. Select 7: The domain name you want to add HTTPS to


    3. Choose 2; use HTTPS all



  3. Access to the domain name at this time is the HTTPS request mode.

Oneinstack installation Https-certbot

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.