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

相关推荐
跃上青空7 分钟前
Java如何优雅的使用fastjson2进行枚举序列化/反序列化,欢迎探讨
java·开发语言
Leo6553523 分钟前
动态透视报表 + 查询接口 + Excel导出
开发语言·windows·python
BioRunYiXue1 小时前
Nature Methods:CellVoyager 自主 AI 智能体开启生物数据分析新时代
大数据·开发语言·前端·javascript·人工智能·数据挖掘·数据分析
kcuwu.2 小时前
Python面向对象:封装、继承、多态
开发语言·python
一定要AK2 小时前
Java流程控制
java·开发语言·笔记
河西石头2 小时前
分享python项目与开源python项目中的效率法宝--requirements文件的使用
开发语言·python·requirements文件·批量安装python依赖·python虚拟环境配置
不懒不懒2 小时前
【卷积神经网络作业实现人脸的关键点定位功能】
开发语言·python
321.。2 小时前
Linux 进程控制深度解析:从创建到替换的完整指南
linux·开发语言·c++·学习
酉鬼女又兒2 小时前
零基础快速入门前端Web存储(sessionStorage & localStorage)知识点详解与蓝桥杯考点应用(可用于备赛蓝桥杯Web应用开发)
开发语言·前端·javascript·职场和发展·蓝桥杯·html