• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question How to set certificate to "Not Selected" by command line client?

Bitpalast

Plesk addicted!
Plesk Guru
Forwarded to devs - Let's Encrypt still causing issues with web server configuration on updating certificates has not yet been fixed. We need a solution for it, so we'd like to add an auto-repair to our watchdog scripts doing this:

1) Either set the certificate of the affected subscription to "Not Selected" or to "<server_certificate>" (where <server_certificate> is the name of the host's default certificate. Neither one can be done by
# plesk bin subscription -u <domain> -certificate-name "<certificate_name>"
The command returns "Unable to find certificate" if the server certificate name is used, and it is not for the reason that the server certificate has a specific name. It seems to only accept certificates inside the domain's repository. And there is no way to set "not selected".

2) Then remove the faulty certificate and run the Let's Encrypt extension again to re-recreate a certificate as that will then hopefully be named correctly.

3) Reconfigure the domain web server settings.

Problem: Step (1) does not work. There does not seem to be a way to set the SSL selection of a domain to "Not selected". But how is the GUI doing this when the user makes that choice? There has got to be an undocumented parameter to a client command. Does anyone know it?
 
Back
Top