tlstun

simple go program to add tls support to other listeners
git clone https://git.parazyd.org/tlstun
Log | Files | Refs | README | LICENSE

commit 9eafb026d57f43fd31bd1b6cf6428cb3ca55043e
parent 9055b2295753d7aaa61a2333e3091b5845d20c8d
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 10 Jul 2019 02:16:02 +0200

New errors should not be capitalized.

Diffstat:
Mtlstun.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tlstun.go b/tlstun.go @@ -57,7 +57,7 @@ func tlsConfig(cert, key string) (*tls.Config, error) { return nil, err } if !certpool.AppendCertsFromPEM(pem) { - return nil, errors.New("Cannot parse client certificate authority") + return nil, errors.New("can not parse client certificate authority") } tlscfg.ClientCAs = certpool tlscfg.ClientAuth = tls.RequireAndVerifyClientCert