I'm not very familiar with SSL certificates/handshakes and I have a big problem now.
I want to get access to an URL https://myhost:443/ inside a docker container. The URL is defined in apache virtualhost, and it's using HTTPS with a certificate httpd.crt:
SSLCertificateFile /etc/pki/certs/httpd.crt
SSLCertificateKeyFile /etc/pki/private/httpd.key
But when I try to get access to https://myhost:443/api inside a docker container, I get this:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Basically I have no right to make SSL connection because I do not have certificate in the container.
My problem is, how to make the HTTPS connection work? Do I need to put the same certificate(httpd.crt) inside the container? Where should I put it?
Thank you in advance.