Acme PHP - Let‘s Encrypt

Let's Encrypt是一个于2015年三季度推出的数字证书认证机构,旨在以自动化流程消除手动创建和安装证书的复杂流程,并推广使万维网服务器的加密连接无所不在,为安全网站提供免费的SSL/TLS证书。

使用PHP来更新证书:

Acme PHP | Robust and easy to use PHP implementation of the Let's Encrypt protocolhttps://acmephp.github.io/安装文档:Acme PHP | Documentation

单步操作:Acme PHP | Documentation

在运行:php acmephp.phar register youremail@example.com,时要用自己的邮箱,否则会报错。

PHP代码方式引入:

https://acmephp.github.io/documentation/core/get-started.html

问题:

1:在win10上运行会报:OpenSSL key creation failed during generation with error: error:0909006C:PEM routines:get_name:no start line。

解决:需要设置下环境变量"OPENSSL_CONF",把openssl.cnf的路径设置上去

bash 复制代码
c:> set OPENSSL_CONF=xxxx\php-7.4.29-nts-Win32-vc15-x64\extras\ssl\openssl.cnf

2:A non-ACME 400 HTTP error occured on request "POST https://acme-v02.api.letsencrypt.org/acme/new-acct" (response body: " (truncated...)")

解决:使用一个真实的邮箱

参考:php配置Let's Encrypt免费ssl证书 - 凭栏知潇雨 - 博客园

相关推荐
xiaopengbc13 小时前
在 Python 中实现观察者模式的具体步骤是什么?
开发语言·python·观察者模式
Python大数据分析@13 小时前
python用selenium怎么规避检测?
开发语言·python·selenium·网络爬虫
ThreeAu.13 小时前
Miniconda3搭建Selenium的python虚拟环境全攻略
开发语言·python·selenium·minicoda·python环境配置
zhangfeng113313 小时前
R 语法高亮为什么没有,是需要安装专用的编辑软件,R语言自带的R-gui 功能还是比较简单
开发语言·r语言
chao18984414 小时前
基于MATLAB的线性判别分析(LDA)人脸识别实现
开发语言·matlab
kyle~14 小时前
排序---快速排序(Quick Sort)
java·开发语言
刘梓谦14 小时前
如何在Qt中使用周立功USB转CAN卡
开发语言·qt·zlg·周立功
爱隐身的官人15 小时前
ctfshow - web - 命令执行漏洞总结(二)
php·命令执行
江公望15 小时前
Qt QML实现无边框窗口
开发语言·qt