I’m running into some issues debugging my https setup.
Here’s the config section:
## Server config
play.server.https {
port = 9443
keyStore.path = "public/server.p12"
}
This results in the keystore being loaded, or so it seems, so that’s good.
When I attempt to make a curl POST request (a request which currently works with normal http) I get the following verbose output:
* STATE: INIT => CONNECT handle 0x600057950; line 1404 (connection #-5000)
* Added connection 0. The cache now contains 1 members
* STATE: CONNECT => WAITRESOLVE handle 0x600057950; line 1440 (connection #0)
* Trying ::1...
* TCP_NODELAY set
* STATE: WAITRESOLVE => WAITCONNECT handle 0x600057950; line 1521 (connection #0)
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (::1) port 9443 (#0)
* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x600057950; line 1573 (connection #0)
* Marked for [keep alive]: HTTP default
* 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/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* STATE: SENDPROTOCONNECT => PROTOCONNECT handle 0x600057950; line 1587 (connection #0)
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Marked for [closure]: Failed HTTPS connection
* multi_done
* stopped the pause stream!
* Closing connection 0
* The cache now contains 0 members
* Expire cleared
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
and this in the server output:
[warn] a.a.ActorSystemImpl - Illegal request, responding with status '400 Bad Request': Unsupported HTTP method: HTTP method too long (started with ' $QX]ᅰ'). Increase `akka.http.server.parsing.max-method-length` to support HTTP methods with more characters.