• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Trying to enable "Keep Websites Secured" via API

simonrp

New Pleskian
Server operating system version
Ubuntu 22.04.4 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.60 Update #1
Hi,

I have coded a PHP script that adds new domains/subscriptions to the server using the Plesk API and also installs a Lets Encrypt SSL cert on them - That all works great.

When I check the SSL Cert in the Plesk interface it shows that the cert thinks it will auto renew but the "Keep Websites Secured" slider is turned off.

I suppose I have two questions please :

1. Do I need that slider turned on for auto renewal ?

2. If I do need it turned on then how can I do that via API (or an exec in PHP) ?

Thanks in advance for any help.
 
If a website already has an Lets Encrypt SSL certificate, it will get renewed automatically. Regardless whether the "Keep Websites Secured" is enabled or not.

The "Keep Websites Secured" option does te following:
Automatically replaces expired or self-signed SSL/TLS certificates with free valid certificates from Let's Encrypt. Covers each domain, subdomain, domain alias, and webmail belonging to the subscription. Issues a new certificate if no certificate was assigned yet.
It's up to you to decide if you want to enabled it :)
If you do want to enable it, you can configure it in the Service Plan at the "Additional Services" tab.
 
If a website already has an Lets Encrypt SSL certificate, it will get renewed automatically. Regardless whether the "Keep Websites Secured" is enabled or not.

The "Keep Websites Secured" option does te following:

It's up to you to decide if you want to enabled it :)
If you do want to enable it, you can configure it in the Service Plan at the "Additional Services" tab.
Thank you so much - that info is perfect :)

I must say, i'm loving the Plesk API - So easy to create a new account and all my customers have to do is point a CNAME record to a subdomain.
 
Back
Top