If you use a commercial certificate, ensure that you follow these steps.
- Ensure that the certificate originates from a trusted source.
- Verify that the certificate includes a Site certificate, a CA certificate, and a Trust Root certificate.
- If these certificates are available as separate files, merge them to make a single file. Run the following command:
#cat [site cert] [CA cert] [Trust Root(if there’s one)] > chaincert.crt
- Copy the merged file to the following folder:
/etc/docker/certs.d/<replace-with-custom-FQDN>:<port>