Nginx CertBot配置HTTPS泛域名证书Debian及常见问题
安装nginx
此步省略, 以nginx安装在'/usr/local/nginx-1.23.3'目录为例
# 1. 安装certbot apt-get install certbot python3-certbot-nginx # 2. 获取证书 # 自动配置, --nginx-server-root指定nginx配置文件目录 certbot --nginx --nginx-server-root /usr/local/nginx-1.23.3/conf # 指定域名, example.com换成自己的域名 certbot --nginx -d example.com -d www.example.com # 3. 自动续约 certbot renew --dry-run
执行完后nginx.conf会自动加上SSL相关配置
常见问题
执行certbot --nginx --nginx-server-root /usr/local/nginx-1.23.3/conf命令报错:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError("Could not find a usable 'nginx' binary. Ensure nginx exists, the binary is executable, and your PATH is set correctly.",)
解决方案:
ln -s /usr/local/nginx-1.23.3/sbin/nginx /usr/bin/nginx ln -s /usr/local/nginx-1.23.3/conf/ /etc/nginx
以上就是Nginx CertBot 配置HTTPS泛域名证书Debian的详细内容,更多关于Nginx CertBot配置HTTPS的资料请关注脚本之家其它相关文章!
- python脚本监听域名证书过期时间并通知消息到钉钉(最新推荐)
- shell脚本检查域名证书是否过期的流程分析
- iis提示尚未创建默认SSL站点,若要支持不带SNI 功能的浏览器,建议创建一个默认SSL站点
- IISCrypto(SSL/TLS一键配置工具) iis服务器如何开启tls v1.2协议
- 一个SSL证书在线转换工具以及IIS7环境下开通https的方法
- IIS站点绑定/切换SSL证书的实现
- IIS10服务器安装SSL证书的图文教程
- iis服务器如何安装ssl证书
- IIS服务器配置阿里云https(SSL)证书的方法
- Microsoft iis服务器安装ssl证书(https)的简单方法
- IIS绑定SSL证书的方法(图文详解)
- 制作能在nginx和IIS中使用的ssl证书
- 在win2008 r2 英文版 IIS7.5上配置Https,SSL的方法
- 有了SSL证书,如何在IIS环境下部署https
- startssl申请SSL证书 并且配置 iis 启用https协议
- win2000服务器在IIS中使用SSL配置HTTPS网站
- IIS7下配置SSL的方法分析
- World Wide Web Publishing 服务尝试删除 IIS 所有的 SSL 配置数据失败的几种方法
- windows server 2019 IIS10配置SSL或更新域名证书(https)
相关文章
在Debian11上安装Openresty服务(Nginx+Lua)的详细教程
OpenResty 是一个基于 Nginx 与 Lua 的高性能 Web 平台,其内部集成了大量精良的 Lua 库、第三方模块以及大多数的依赖项,这篇文章主要介绍了在Debian11上安装Openresty服务(Nginx+Lua) ,需要的朋友可以参考下2022-10-10
Nginx配置PATHINFO隐藏thinkphp index.php
这篇文章主要介绍了Nginx配置PATHINFO隐藏thinkphp index.php,本文直接给出配置示例,需要的朋友可以参考下2015-07-07
Nginx跨域设置Access-Control-Allow-Origin无效的解决办法
今天小编就为大家分享一篇关于Nginx跨域设置Access-Control-Allow-Origin无效的解决办法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧2019-02-02


最新评论