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证书 - 凭栏知潇雨 - 博客园

相关推荐
脑袋大大的1 小时前
JavaScript 性能优化实战:减少 DOM 操作引发的重排与重绘
开发语言·javascript·性能优化
二进制person2 小时前
Java SE--方法的使用
java·开发语言·算法
OneQ6662 小时前
C++讲解---创建日期类
开发语言·c++·算法
码农不惑3 小时前
2025.06.27-14.44 C语言开发:Onvif(二)
c语言·开发语言
Coding小公仔4 小时前
C++ bitset 模板类
开发语言·c++
小赖同学啊5 小时前
物联网数据安全区块链服务
开发语言·python·区块链
shimly1234565 小时前
bash 脚本比较 100 个程序运行时间,精确到毫秒,脚本
开发语言·chrome·bash
IT_10245 小时前
Spring Boot项目开发实战销售管理系统——数据库设计!
java·开发语言·数据库·spring boot·后端·oracle
new_zhou6 小时前
Windows qt打包编译好的程序
开发语言·windows·qt·打包程序