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

相关推荐
海盗12341 分钟前
WPF上位机组件开发-设备状态运行图基础版
开发语言·c#·wpf
看我干嘛!3 分钟前
python第四次作业
开发语言·python
Coder_preston3 分钟前
Java集合框架详解
java·开发语言
多多*7 分钟前
2026年最新 测试开发工程师相关 Linux相关知识点
java·开发语言·javascript·算法·spring·java-ee·maven
2301_7634725832 分钟前
实时系统下的C++编程
开发语言·c++·算法
Vect__35 分钟前
TCP Socket编程详解
网络协议·tcp/ip·php
REDcker36 分钟前
TCP 拥塞控制算法详解:CUBIC、BBR 及传统算法
tcp/ip·算法·php
阿猿收手吧!39 分钟前
【C++】深入理解C++ Atomic内存序:解决什么问题?怎么用?
开发语言·c++
小白学大数据43 分钟前
Python爬虫实现无限滚动页面的自动点击与内容抓取
开发语言·爬虫·python·pandas
Andy Dennis44 分钟前
一文漫谈设计模式之创建型模式(一)
java·开发语言·设计模式