• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Subdomain SSL

vendettaBey

New Pleskian
I am using php CURL with plesk XML API for the create subdomain . I can successfully created subdomain . But my subdomain doesn't have SSL certificate . How can i install SSL certificate . My host have Let's Encrypt cerftication .

I tried generate SSL on Plesk API . I successfully created a SSL . It's return me a "csr" code and a "pvt" code . How can i install my SSL to my created subdomain ?
 
To install a Let's Encrypt SSL certificate to your created subdomain in Plesk using the API:

Use the "generate-csr" API endpoint to generate a Certificate Signing Request (CSR) for your subdomain. This API will provide you with a CSR code.

Use the "letsencrypt" API endpoint to request a Let's Encrypt SSL certificate for your subdomain. Provide the CSR code generated in the previous step as a parameter.

The Let's Encrypt API will return the SSL certificate once it's issued.

Use the "install-certificate" API endpoint to install the SSL certificate to your subdomain. Provide the SSL certificate and private key (pvt) codes returned by the Let's Encrypt API.

This process should enable SSL for your subdomain using Let's Encrypt certificates through the Plesk API. Make sure to handle any errors or exceptions that may occur during the process.
 
Back
Top