I have a Java web application and one of the modules is using Vaadin for rendering the web interface. This module is running inside a docker container on a server. Could anyone help me to understand how I can add a SSL certificate in order to allow https calls for this module?
I have an assumption that we need to add the cert in cacerts file in java security directory but I don't have direct access to it since it's inside docker container. Maybe I should add some settings in my docker-compose.yml file?
Update:
I have tried to add the following line to docker-compose.yml for this module in volumes section.
volumes:
- ${CONF_DIR}/backend/cert/cacerts:/usr/java/default/lib/security/
I added the cert in backend/cert/cacerts and copied this file in /usr/java/default/lib/security/ while building a container. After that I also checked if this cert is present inside the container and I can confirm that the cert is there.
But when I call https://xxxxx...I'm getting the error - This site can’t provide a secure connectionERR_SSL_PROTOCOL_ERROR