• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Replace Plesk Cert from command line

Fohnbit

New Pleskian
Hello,

I renew my SSL Cert on my hoster and forgot to update this in plesk.
Later I was not to able to open Plesk or my websites, because of
Error code: SEC_ERROR_REVOKED_CERTIFICATE

In the meantime I import the new cert in plesk command line and assign this to my domains:
Bash:
root@dlc:/usr/local/requests# plesk bin certificate -l -admin
CSR Priv Cert CA Name                     Used
Y   Y    Y    Y  xxx Cert 2 22-03-2020 2

Listing of SSL/TLS certificates repository was successful
root@dlc:/usr/local/requests# plesk bin certificate -l -domain xxx.com
CSR Priv Cert CA Name                     Used
N   Y    Y    Y  xxx Wildcard          1
Y   Y    Y    Y  xxx Cert 2 22-03-2020 5

The "xxx Wildcard" is the old one.
I could not delete because:
Bash:
root@dlc:/usr/local/requests# plesk bin certificate --remove "xxx Wildcard" -domain xxx.com
One of the certificates you are going to delete is used for securing Plesk.

exit status 1

How could I update the securing cert for Plesk itself?

I´m not able to login to plsek webfront, because same error:
Secure Connection Failed

An error occurred during a connection to xxx:8443. Peer’s Certificate has been revoked.

Error code: SEC_ERROR_REVOKED_CERTIFICATE


Thank you!
 
You dont even have to do this via SSH. The easier way is to start Chrome with the "--ignore-certificate-errors" parameter (see HERE) and Log in your Web-Panel of Plesk and change the Certificate.

Pls notice: after this remove the parameter again.
 
It depends on with which domain you are logging in?

You can see the FQDN/Hostname you should use and secure there:

Plesk FQDN.PNG

This domain ahve to be secured with a legit SSL Cert.

After this remove the "--ignore-certificate-errors" Parameter from Chrome and retry again and check if it now working.

#EDIT
great, thank you .. its running now

You have been faster ;)
Have fun! And pls mark this Thread as solved, so others can find the answer/solution faster
 
Back
Top