Skip to content

Commit

Permalink
Merge pull request #7 from a-h/support_tls_1_2
Browse files Browse the repository at this point in the history
Set minimum TLS version to 1.2
  • Loading branch information
a-h authored Feb 26, 2021
2 parents 41a24bf + 7de6e73 commit ed525c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# See documentation at http://goreleaser.com
builds:
- env:
- CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (srv *Server) serveInsecure(l net.Listener) (err error) {

func (srv *Server) serveTLS(l net.Listener) (err error) {
config := &tls.Config{
MinVersion: tls.VersionTLS13,
MinVersion: tls.VersionTLS12,
ClientAuth: tls.RequestClientCert,
InsecureSkipVerify: true,
GetCertificate: func(hello *tls.ClientHelloInfo) (*tls.Certificate, error) {
Expand Down

0 comments on commit ed525c8

Please sign in to comment.