Subscribe Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security. Subscribe

Docker SSL Error

Hi

I have a docker installation and have a wildcarded certificate. Our instance will be on a machine on a private network. I have verified that the files certificate.crt and key.pem are in the docker container at the specified folder.

My docker-compose was simply this:

volumes:
     ...
      - '/_ssl/certificate.crt:/etc/apache2/ssl/certificate.crt:ro'
      - '/_ssl/key.pem:/etc/apache2/ssl/key.pem:ro'


    environment:
      SSL: "{SSL:true}"

However I am trying to navigate to https://subdomain.our-domain.ca:8000/ and I am getting:

An error occurred during a connection to as10393.nshealth.ca:8000. SSL received a record that exceeded the maximum permissible length.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

I know what this error means, but I followed the instructions and as this is a docker install am wondering if this is a problem with it being a wildcard cert or what the fix for this should be? I see some unmerged SSL branches on the github repo?

Thanks

I solved this by mapping an additional HTTPS Port