Documentation ¶
Overview ¶
Package server wraps http.ListenAndServeTLS such that it generates self signed certificates on the fly automatically
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServeTLS ¶
ListenAndServeTLS creates a new server like http.ListenAndServeTLS but creates a self-signed certificate on the fly. Warning: Since it's not a trusted certificate chain, the golang http-server will log
http2: server: error reading preface...
when connecting to the server.
If p is nil the Default Parameters (RSA2048, Valid from now for 365 days) will be used for the certificate generation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.