Create SSL Certificate
This request creates an SSL certificate.
For a Let’s Encrypt certificate, set the type to LETS_ENCRYPT and add the domain names that must be in the certificate, then
generate and install the certificate.
For an existing certificate, set the type to IMPORTED, then upload the private key and the
full chain and install the certificate.
Warning: changing the SSL configuration can break the HTTPS connection with the server.
Resource
POST /sslcertificates
Parameters
None
Payload
Response
Context
| Authorization |
Administrator |
Errors
Example
Request
POST https://xelion.nl/api/v1/master/sslcertificates
Payload
{
"type": "LETS_ENCRYPT",
"domainnames": [
{
"domainname": "xelion.nl",
"objectType": "XCCDomain"
}
],
"objectType": "XCCSSLCertificate"
}
Response
{
"object": {
"type": "LETS_ENCRYPT",
"domainnames": [
{
"domainname": "xelion.nl",
"objectType": "XCCDomain"
}
],
"permissions": "ReadWriteRemove",
"commonName": "xelion.nl",
"oid": "1591405",
"objectType": "XCCSSLCertificate"
},
"links": [
{
"rel": "self",
"href": "https://xelion.nl/api/v1/master/sslcertificates/1591405",
"method": "GET"
}
]
}