- A Java Service is running inside the Docker container, which access the external HTTPS url and its self-sign certificate is unavailable to the service/ JRE cacert keystore and therefore connection fails.
- Hence imported the self-signed certificate of HTTPS external URL into Docker container's JRE cacert keystore. (after checking the
$JAVA_HOME
env. variable) - Restarted the Docker container (using
docker restart
command), hoping that the service is also get restarted and pick the changes from JRE cacert. But this didn't happen, the Java service still fails to access external HTTPS URL.
Any idea how a Java service running inside the Docker container pick the JRE cacert changes with new certificate import?