Upload a self-managed certificate with the CDN Zones API when no custom SSL certificate is installed on the development, staging, or production POD, or when the POD certificate doesn’t cover the hostname. Create the zone first. See Storefront Zone Creation.
This command handles either Windows (CR LF) or Unix (LF) line endings.
Windows GUI. Windows Notepad can’t replace line endings. Use a third-party editor such as Notepad++.
Open each certificate and key file in Notepad++, and note the line ending.
Select Search > Replace.
In Find what, enter the character for the line ending:
Enter \n if the file has Unix (LF) line endings.
Enter \r\n if the file has Windows (CR LF) line endings.
In Replace with, enter \\n.
In Search Mode, select Extended (\n, \r, \t, \0, \x…).
Click Replace All. If you have multiple certificate or key files open, click Replace All in All Opened Documents.
Upload a Custom Certificate
For each hostname, upload the certificate with addCertificateForZone. Pass the hostname, the certificate, and the private key. Set certificateType to custom.