Skip to content

SSL not working when using IP address? #2270

Answered by Mavrik347
Mavrik347 asked this question in Q&A
Discussion options

You must be logged in to vote

A bit more on this, I managed to fix it.

Firstly despite the VIRTUAL_HOST declaring the IP being used to reach it along with the certificate in CERT_NAME. nginxproxy uses the default.crt. If it doesn't exist, then you straight up get ERR_SSL_PROTOCOL_ERROR blocked.

So I generated a new SSL certificate. I took a carpet bombing approach, adding the DNS name, the IP used to reach it and a whole range of docker IP's as that's what comes up as the REMOTE_ADDR and SERVER_ADDR's via PHP. I put a few docker IP's in as they may change.

I then made that .crt the new marty.crt and default.crt and rebooted nginxproxy. Once the new certificate was installed on the end user devices the connection is ac…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mavrik347
Comment options

@buchdag
Comment options

@Mavrik347
Comment options

Answer selected by Mavrik347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants