问题原文
原帖链接 · Dushyant Bangal · CC BY-SA 4.0
I had setup the server, virtual hosts via cpanel. I didnt renew my cpanel subscription because I no longer needed it.
Now my SSL certificate has expired. I have SSH access to the server.
How do I update the certificate without subscribing to cpanel just to renew the certificate?
What I have tried:
Replace the keys and certs in the user's home directory.
update using whmapi1, but that says cannot read license.
已采纳解答
原帖链接 · Dushyant Bangal · CC BY-SA 4.0
If someone has a better answer, please post it. But here's how I was able to achieve it:
Goto
/var/cpanel/ssl/apache_tls/You will see a directory for each of your virtual host.
Inside each directory, there is a
certificatesfile and acombinedfile. There are also.cachefiles for both.Edit the certificate file, and put your certificate in place of the expired ones.
Edit the combined file, and put your key and certificate in place of the expired ones.
Rebuild the ssl.db for all users using
/scripts/rebuildinstalledssldbDelete the
.cachefiles (not sure if necessary)Restart apache2 using
systemctl restart httpd
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
