2024-03-29 10:08:15 +01:00
2024-03-28 13:55:19 +01:00
2016-02-04 10:56:33 +01:00
2024-03-29 10:08:15 +01:00
2024-03-29 10:08:15 +01:00
2016-02-04 10:56:33 +01:00

Golang tls configuration helper

golangs tls package is great, but the default configuration is nothing you should use in production. This package is trying to provide and maintain a set of default tls configurations.

securing your server

// construct a webserver with a custom tls configuration
tlsServer := &http.Server{
    Addr:      "0.0.0.0:443",
    Handler:   serverHandler,
    TLSConfig: tlsconfig.NewServerTLSConfig(tlsconfig.TLSModeServerStrict),
}

tlsServer.ListenAndServeTLS("path/to/cert", "path/to/key")

S
Description
No description provided
Readme
125 KiB
Languages
Go 100%