欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 财经 > 创投人物 > Acme PHP - Let‘s Encrypt

Acme PHP - Let‘s Encrypt

2025/5/22 10:44:01 来源:https://blog.csdn.net/nece001/article/details/143858444  浏览:    关键词: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 protocolicon-default.png?t=O83Ahttps://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的路径设置上去

c:> set OPENSSL_CONF=xxxx\php-7.4.29-nts-Win32-vc15-x64\extras\ssl\openssl.cnf
<?php// 代码方式引入时,目前测试使用以下代码方式设置,无效(要在环境变量中先设置好)
// putenv("OPENSSL_CONF=xxx/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证书 - 凭栏知潇雨 - 博客园

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词