I'm running artifactory as a docker container in our environment by using docker-compose more or less equal the the official one: https://github.com/jfrog/artifactory-docker-examples/blob/master/docker-compose/artifactory/artifactory-pro.yml
When adding a remote repository, I found out that the certificate the remote is using is not trusted by my artifactory server:
Connection to remote repository failed: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
As far as I know I have to add the self signed root certificate, which is used by the server, needs to be added to the keystore of the used jvm which runs the artifactory. I found all the tutorials which show of how to do it on a regular installation, but none of how to do it in a docker container. I could try to exec into the container but this doesn't feel like being the correct way.
Does someone know how to add a self signed certificate to the cacert keystore inside of the artifactory docker container as part of the docker-compose script?