danielgtaylor / apisprout

Lightweight, blazing fast, cross-platform OpenAPI 3 mock server with validation
MIT License
697 stars 74 forks source link

Add HTTPS support #43

Closed ZakCodes closed 5 years ago

ZakCodes commented 5 years ago

If the --https flag is passed, the server uses HTTPS instead of HTTP and uses the provided public-key and private-key provided using those flags. It also outputs Securely sprouting to ... instead of Sprouting to ... when in HTTPS mode.
To help with debugging, the error from the HTTP and the HTTPS server are loged.
I've tested what happens when HTTP requests are sent to the HTTPS server and it returns a 400 status code with Client sent an HTTP request to an HTTPS server. for the response body.