SSL - Import self signed certificates

Get self signed SSL certificate

cd /media/emsites/[instance]/services
echo -n | openssl s_client -connect [server]:3269 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem

Generating a .der certificate:

openssl x509 -outform der -in ldapserver.pem -out certificate.der

Get access to your Docker container's bash and run the following command:

keytool -import -alias [YOUR-ALIAS] -keystore cacerts -file /media/services/certificate.der

Restart your Docker container