Skip to content

How to debug why HTTPS not working? #131

@keyoti

Description

@keyoti

Here's my config


{
  "ports": {
    "8000": {
        "router": {
            "*": "127.0.0.1:80"
        }
    },
    "4443": {
        "router": {
            "*": "127.0.0.1:80"
        },
        "ssl": {
            
            "key": "c:\\path\\localhost.key",
            "cert": "c:\\path\\localhost.crt",
            "ca": ["c:\\path\\ca.key","c:\\path\\ca.crt"]
        },
        "SNI":{
            "localhost" : {
                "key": "c:\\path\\localhost.key",
                "cert": "c:\\path\\localhost.crt",
                "ca": ["c:\\path\\ca.key","c:\\path\\ca.crt"]
            }
        }
    }
  },
  "middleware": ["log -> e:\\access.log" ], 
  "modules": {
    "appLog": "e:\\app.log"
  }

}

the HTTP proxy works fine, but the HTTPS proxy doesn't do anything, the output in the cmd line is


[1] Listening on port: port 4443
[1] Listening on port: port 8000
[2] Listening on port: port 4443
[1] Start successful
[2] Listening on port: port 8000
[2] Start successful
All workers started in 1893ms

When I hit https://localhost:4443/ the browser shows

This site can’t be reached
localhost unexpectedly closed the connection.
Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_CLOSED

I have put some breakpoints in DispatchTable etc and I can see it processing the request, but I can't figure out how to debug this. I have no idea if my config is bad, or it's my certificates etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions