• 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 XML API php : Create subdomain with letsencrypt ssl certificate

Incredible_max

New Pleskian
I am creating a subdomain via the xml API and PHP which is working just fine.
But now I am trying to create those subdomains with a ssl certificate which shall be created by letsencrypt automatically, which works also fine if I create the subdomain by hand.

That's the xml packet:
<packet version=\"1.6.8.0\">
<subdomain>
<add>
<parent>" . $domain . "</parent>
<name>" . $name . "</name>
<property>
<name>www_root</name>
<value>" . $path . "httpdocs" . "</value>
</property>
<property>
<name>ssi</name>
<value>true</value>
</property>
<property>
<name>ssl</name>
<value>true</value>
</property>
</add>
</subdomain>
</packet>

Do I have to add anything to get this running?
 
As far as I know, LE certificates can't be managed by API XML yet.
 
Back
Top