简体   繁体   中英

Using SSL on nginx in a Docker container hosted on Jelastic

I have a Docker container with nginx running on Jelastic. From the container I used certbot to get a ssl certificate from letsencrypt. Finally I changed the nginx conf accordingly. I have not enble ssl in the Jelastic user interface.

When browsing the site on https it seems that I get the generic certificate of the Jelastic provider but not my own certificate, because the error is SSL_ERROR_BAD_CERT_DOMAIN the ssl certificate served is for the domain of the provider. But I have not enabled the ssl on the Jelastic interface ?!

So can I use a letsencrypt ssl certificate in my docker container on Jelastic and how ?

Thank you

It seems that you are trying to use custom SSL cert without public IP. In this case, all external traffic is going through the platform revers-proxies wich is providing platform shared SSL.

The solution is to use external IP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM