Skip to content

Noooste/tlsconfig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

tls configuration utilities

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%