Generate LetsEncrypt Certificate for your custom domain(CNAME) using our API

Peter Spasov
2019-11-27 15:37

You can create a new SSL certificate for your custom domain by executing the following API Call:

curl --include --request POST "https://api.ucdn.com/v2/letsencrypt/{Insert your ZONE ID here}?token={ insert your API key here }"

If the command is executed successfully it should return the following message:

HTTP/2 202
{"message":"Letsencrypt request for new certificates successfully accepted and will begin execution shortly."}

Please keep in mind that in order to be successful, you have to point your CNAME to your correct zone and add your CNAME in our Control Panel (my.ucdn.com)

You can find your Authentication Token (also known as API key) in your control panel inside  "View Profile".

Tags: API, SSL