Closed samcro1967 closed 2 years ago
@samcro1967 , “ http_port” should be 80 ;-) you can remove http/s port directives if you are using default ports.
Ah geez. Sometimes it just takes someone else to find your dumb mistake. Been looking at that Caddyfile for an hour lol. Obviously that got me a little further.
{"level":"debug","ts":1644501041.6167905,"logger":"tls.handshake","msg":"no matching certificates and no custom selection logic","identifier":"172.18.0.2"}
{"level":"debug","ts":1644501041.6168334,"logger":"tls.handshake","msg":"no certificate matching TLS ClientHello","server_name":"","remote":"192.168.1.103:52164","identifier":"172.18.0.2","cipher_suites":[47802,4865,4866,4867,49195,49199,49196,49200,52393,52392,49171,49172,156,157,47,53],"cert_cache_fill":0.0003,"load_if_necessary":true,"obtain_if_necessary":true,"on_demand":false}
{"level":"debug","ts":1644501041.6169038,"logger":"http.stdlib","msg":"http: TLS handshake error from 192.168.1.103:52164: no certificate available for '172.18.0.2'"}
{"level":"debug","ts":1644501041.6179514,"logger":"tls.handshake","msg":"no matching certificates and no custom selection logic","identifier":"172.18.0.2"}
{"level":"debug","ts":1644501041.6180127,"logger":"tls.handshake","msg":"no certificate matching TLS ClientHello","server_name":"","remote":"192.168.1.103:52165","identifier":"172.18.0.2","cipher_suites":[2570,4865,4866,4867,49195,49199,49196,49200,52393,52392,49171,49172,156,157,47,53],"cert_cache_fill":0.0003,"load_if_necessary":true,"obtain_if_necessary":true,"on_demand":false}
{"level":"debug","ts":1644501041.618122,"logger":"http.stdlib","msg":"http: TLS handshake error from 192.168.1.103:52165: no certificate available for '172.18.0.2'"}
@samcro1967 , the above set of errors is saying you don’t have a cert for the 192.168 address. This is not caddy-security
Ok. I thought caddy was able to generate and manage internal certs, but I am not finding anything in a quick search. Not sure I want to mess with generating and managing internal certs for testing purposes. Will probably move testing back to production now that I am further along. Appreciate your help.
Ok. I thought caddy was able to generate and manage internal certs
@samcro1967 , I maintain my own root and intermediate cert authorities and issue certificates myself.
Working to get converted from caddy-auth-portal to caddy-security. I have a new docker image and Caddyfile. I am able to go to http://192.168.1.106 and am returned "Client sent an HTTP request to an HTTPS server". Good sign caddy is listening on port 80. When I go to https://192.168.1.106/auth or https://192.168.1.106/portainer I get "This site can’t provide a secure connection". I am not seeing any errors in the logs. Not sure what I am missing.
Version
Caddyfile
Dockerfile
Caddy Logs