Problems testing domain locally with TLS self_signed and hosts file modification

I’m trying to test a domain name locally on 0.9 beta 2 over https. To do that I added “127.0.0.1 mydomain.com” to the hosts file (on windows).
The caddy conf is

mydomain.com:443 {
    tls self_signed
}

caddy starts up but my browsers are giving me ERR_SSL_PROTOCOL_ERROR(Chrome) or “SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG” (Firefox) when I try to open https://mydomain.com.

Any pointers how to achieve that? Is it possible at all?

Thanks

Hi Martin, thanks for your question!

Hm, self_signed works here, but I’m on a Mac. Any more information you can give us to reproduce the error?

Better yet, if you think this is a bug, please open an issue on GitHub following the template there.

Hi,
filed it here: #912
Tested it on another windows machine: same error. Tested it on ubuntu: works fine. So it does seem to be windows related issue.

Thanks!

1 Like

Thanks!

Please excuse me while I go boot up a Windows VM. :unamused:

:smile:

(Edit: Discussion continued in issue on GitHub.)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.