1. Support Center
  2. IT Onboarding
  3. Onboarding Production for On-Premise ( Azure/AWS)

How to add a certificate to a DMCS

This article is for ubuntu admins only

Before you start - make sure you have acquired a .pfx certificate for the proper domain as well as the password for the .pfx certificate. 

Make sure the domain points to the external domain of the DMCS. If the DMCS is not available on the internet - make sure that you have a local DNS service to validate the certificate

Guide for certificate setup:
  1. Upload certificate to server: scp -i ~/.ssh/yourpem.pem Downloads/certifickatname.pfx adminling@dmccsdoamin/home/myfolder
  2. Find location of certs folder: docker volume inspect certs
  3. Move pfx file from home dir to certs dir: mv /home/myfolder/certficatename.pfx /mnt/docker/volumes/certs/_data/
  4. Go to certs dir: cd /mnt/docker/volumes/certs/_data/
  5. Rename pfx file: mv cdertifikatname.pfx cert.pfx
  6. Unpack pfx: openssl pkcs12 -in cert.pfx -nocerts -out key.pem
  7. Unpack cert: openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.pem
  8. Unpack key: openssl rsa -in key.pem -out server.key
  9. Rename cert: mv cert.pem fullchain.pem
  10. Rename key: mv server.key privkey.pem