Edit CDN Custom SSL Certificate

URL

https://cdnsun.com/api/custom-ssl-certificates/ID

Method

PUT

Curl example

curl -i -X PUT -u username:password -H 'Accept: application/json' -H 'Content-type: application/json' --url 'https://cdnsun.com/api/custom-ssl-certificates/ID'

Options

OptionData TypeDescriptionExampleNote
IDintegerCustom SSL Certificate ID.5 
certificatestringCustom SSL Certificate content in PEM format.-----BEGIN CERTIFICATE-----\nMIIDX7uCaIo7IWnNFn3RfEf\nQG1Tzzj70gbiKpQ=\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n3ednkIjdWnNFn3RfEf\nQG1Tzzj70gbiP3=\n-----END CERTIFICATE-----Replace new line characters with \n or \\n. Append all intermediate certificates.
certificate_keystringCustom SSL Certificate key in PEM format.-----BEGIN PRIVATE KEY-----\nVIDX8uCaIo7IWnNFn3RfEf\nQG1Tzzj70gbiKa1=\n-----END PRIVATE KEY-----Replace new line characters with \n or \\n.

Note

Please note that only SNI SSL certificates can be edited. Please refer to Creating CDN services with an SSL enabled for more details.

Contact Us

   _____   __   __            
  / ___//  \ \\/ //     ___   
  \___ \\   \ ` //     /   || 
  /    //    | ||     | [] || 
 /____//     |_||      \__ || 
`-----`      `-`'       -|_|| 
                         `-`