Remove all expired certificates from Security - TLS/SSL - Certificates (CRT)
Open Discussion
As a cPanel User, I would like to add a single button to delete all the expired certificates in AutoSSL so that it will simplify the process of updating SSL certificates.
==========
The AutoSSL addon don't deletes older certificates when they expire.
They're laying on the system until you manually deletes they.
We can do it one by one on cPanel / Security / TLS-SSL / Certificates (CRT).
What about a single button to delete all the expired certificates (looking the expiration date of the cert) in a single click?
This is a must and the fact the API lacks the necessary linkage to make it easier is definitely frustrating when you have tons of domains not updating due to expired and were previously installed by Let's Encrypt vs Comodo or vice versa.
Came up with this workaround for now which appears to be working great on my tests.
Check for expired certs:
Check for Expired and delete:
This is something if looking at the way the API functions for this doesn't make any sense why it should be this difficult to do as an administrator via API or as the end user in the cPanel.
In the AutoSSL settings where you have the replace expiring or expired is kinda pointless when enabled and its not fixing these till manually removed. this has been confirmed on numerous current v88 centos 7 servers.
https://docs.cpanel.net/whm/ssl-tls/manage-autossl/#allow-autossl-to-replace-invalid-or-expiring-non-autossl-certificates
Reference links:
https://features.cpanel.net/topic/delete-multiple-ssl-hosts
https://forums.cpanel.net/threads/remove-ssl-certificate.541091/
Api why can root not just delete the expired?
https://documentation.cpanel.net/display/DD/UAPI+Functions+-+SSL::delete_cert
Why is there a username requirement? and no automated lookup if you simply provide the explicit cert id to have deleted as root?
There's also no whmapi function from what i could find to delete as root either.
Please add these necessary api calls or adjust the system so it works without needing these extra workarounds.
Thanks.
This is a must and the fact the API lacks the necessary linkage to make it easier is definitely frustrating when you have tons of domains not updating due to expired and were previously installed by Let's Encrypt vs Comodo or vice versa.
Came up with this workaround for now which appears to be working great on my tests.
Check for expired certs:
Check for Expired and delete:
This is something if looking at the way the API functions for this doesn't make any sense why it should be this difficult to do as an administrator via API or as the end user in the cPanel.
In the AutoSSL settings where you have the replace expiring or expired is kinda pointless when enabled and its not fixing these till manually removed. this has been confirmed on numerous current v88 centos 7 servers.
https://docs.cpanel.net/whm/ssl-tls/manage-autossl/#allow-autossl-to-replace-invalid-or-expiring-non-autossl-certificates
Reference links:
https://features.cpanel.net/topic/delete-multiple-ssl-hosts
https://forums.cpanel.net/threads/remove-ssl-certificate.541091/
Api why can root not just delete the expired?
https://documentation.cpanel.net/display/DD/UAPI+Functions+-+SSL::delete_cert
Why is there a username requirement? and no automated lookup if you simply provide the explicit cert id to have deleted as root?
There's also no whmapi function from what i could find to delete as root either.
Please add these necessary api calls or adjust the system so it works without needing these extra workarounds.
Thanks.
Replies have been locked on this page!