Hi there
Is the a way to enable auto SSL by default when new domains are being created in SolidCP.
Hello,
This is currently not possible. Would you be looking for SolidCP to try generate the LetsEncrypt certificate?
Thanks,
Trevor
Hi there Trevor
Yes, that would be the ideal situation if SolidCP creates a Letsencrypt SSL for each domain on creation of the domain. If there is a current work around to achieve this I would greatly appreciate any advise you can give me. thanks
Alternatively do you know of a command or API that I can issue to create new certs for a domain?
Hello,
To make a certificate for a website you would need to call the SolidCP Enterprise portal API using :9002/esWebServers.asmx?op=LEInstallCertificate
If you load this in a browser it will explain the required values.
Thanks,
Trevor
Thanks for the answer Trevor
In the mention API where do I get the value for <siteItemId>int</siteItemId>.
I searched all columns in SolidCP DB and can't find anything matching it.
The closest I came was DomainItemId.
Please advise.
POST /eswebservers.asmx HTTP/1.1
Host: xxx.xxx.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<LEInstallCertificate xmlns="http://smbsaas/solidcp/enterpriseserver">
<siteItemId>int</siteItemId>
<email>string</email>
</LEInstallCertificate>
</soap12:Body>
</soap12:Envelope