Is the a way to enable auto SSL by default when new domains are being created in SolidCP.
This is currently not possible. Would you be looking for SolidCP to try generate the LetsEncrypt certificate?
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?
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 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.
POST /eswebservers.asmx HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
<?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”>
This should be the ItemID as shown in [dbo].[ServiceItems].
- Views347 times
- Answers5 answers