...
Purchase a Domain (for example, cloudfon.net) from the domain provider (for example, GoDaddy.) for your CX.
Add an A record in the Domain DNS zone, and resolve the Domain to your CX IP, for example: point the cx.cloudfon.net to CX server IP.
Purchase a certificate from the trust certificate provider for your domain, for example, Digicert, Thawte, GeoTrust; If you want to make it easier to manage multi-tenants, you'd better apply for a wildcard certificate.
Generate the CSR file and private key file according to the certificate provider’s guide, and keep the files. usually, you will have two files: the certificate and the private key. Note, please choose the certificates for Nginx.
Rename the private key file as yourname_cx.key.
Submit the CRS file to the certificate provider, and download the certificate files after your certificates were approved. This step will end up with two files: Intermediate CA certificate and SSL certificate . Note, some providers don't have the Intermediate CA certificate.
Please ignore this step if your provider doesn't provide the Intermediate CA certificate . Use a plain text editor for example Windows Notepad (do not use MS Word) to open the Intermediate CA file and SSL certificate file, copy the Intermediate CA contents to append to the SSL certificate file, and rename the SSL certificate file as yourname_cx.pem. In the Linux environment, you can use the below commands to combine the certificate files.
Code Block |
---|
# Append intermediate file to certificate file
cat intermediate.pem >> cert.pem
# Rename certifiate file to yourname_cx.pem
mv cert.pem yourname_cx.pem |
Now you will have two certificate files, the certificate file yourname_cx.pem , and private key file yourname_cx.key .
Please Note: Please confirm the Certificate is full-Chain certificate, otherwise some third-party platforms such as Whatsapp will reject the verification request. After the server is initialized, you can test the certificate integrity through the following test sites:
For example: https://www.sslchecker.com/sslchecker