问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
