I'm trying to reach an https endpoint using curl within a docker instance. Despite the fact I'm using "https", I'm getting an error, "error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol ". What else do I need to do to reach my endpoint? Here's the trace ...
root@my-instance:/app# curl -v https://localhost:3056/myusers/242
* Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 3056 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 3056 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol