Free HTTPS? Official installation Tutorial: https://certbot.eff.org/#centos6-nginx (The following is a description of the installation encountered);
- Download and modify file permissions
wget https://dl.eff.org/certbot-auto && chmod a+x Certbot-auto
- Perform:
- ./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
Select 7: The domain name you want to add HTTPS to
Choose 2; use HTTPS all
- Access to the domain name at this time is the HTTPS request mode.
Oneinstack installation Https-certbot