Skip to content
tls configuration utilities
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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:      "",
    Handler:   serverHandler,
    TLSConfig: tlsconfig.NewServerTLSConfig(tlsconfig.TLSModeServerStrict),

tlsServer.ListenAndServeTLS("path/to/cert", "path/to/key")
You can’t perform that action at this time.