• 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

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