大网数据广告活动
网站运营与故障问答

Is it possible to manual renew Let's Encrypt SSL certificate without domain verification?

· 52CE 我爱测

I'm on a shared hosting without SSH access and I host there 20+ domains. The domains don't have a dedicated public IP address, so I'm using TLS/SNI with a shared SSL certificate for all the domains that I'm able to upload into th…

问题原文

原帖链接 · Joudicek Jouda · CC BY-SA 3.0

I'm on a shared hosting without SSH access and I host there 20+ domains. The domains don't have a dedicated public IP address, so I'm using TLS/SNI with a shared SSL certificate for all the domains that I'm able to upload into the hosting administration.

Since I don't have SSH access to the server, I used the Let's Encrypt Manual method (http://letsencrypt.readthedocs.org/en/latest/using.html#manual) on a local computer to issue the certificate.

It took a lot of time to validate all the domains (www + non-www = 20 * 2 challenges) and now the SSL certificate is going to expire (the certificate is only for 90 days).

It is possible to renew the certificate without doing the challenges again? I have the private key for the certificate, so can't they validate the domains based on that?

已采纳解答

原帖链接 · lukaswojnar · CC BY-SA 3.0

As Steffen metioned it is not possible to do the renewals without domain re-validation.

BUT even without SSH access it is possible to automate the Let's Encrypt renewal request which shoould solve your manual validation problem. Have a look at: Lescript on GitHub

The challenges are completed by creating the files and folders using PHP. The only thing you need to do is run this script every 90 days. It generates the SSL certificate into your webroot and you upload it into your hosting administration.

The script requirements are:

  • PHP 5.3 and up
  • OpenSSL extension
  • Curl extension

Before running the script you should also disable all the .htaccess mod_rewrite rules that rewrite URL to it's canonical form. Otherwise when validating domain.com it may rewrite the validation URL to www.domain.com and the challenge will fail.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-02-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。