Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foomo/tlsconfig
tls configuration utilities
https://github.com/foomo/tlsconfig
foomo
Last synced: about 15 hours ago
JSON representation
tls configuration utilities
- Host: GitHub
- URL: https://github.com/foomo/tlsconfig
- Owner: foomo
- Created: 2016-02-03T08:07:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T09:08:54.000Z (8 months ago)
- Last Synced: 2024-11-04T17:47:43.403Z (9 days ago)
- Topics: foomo
- Language: Go
- Homepage: https://www.foomo.org
- Size: 4.88 KB
- Stars: 2
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```go
// 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")
```