This commit is contained in:
Shivaram Lingamneni 2020-05-06 05:53:45 -04:00
parent b0f692e1ca
commit 14bcd46588
3 changed files with 16 additions and 4 deletions

View file

@ -746,7 +746,7 @@ func (conf *Config) Operators(oc map[string]*OperClass) (map[string]*Oper, error
func loadTlsConfig(config TLSListenConfig, webSocket bool) (tlsConfig *tls.Config, err error) {
cert, err := tls.LoadX509KeyPair(config.Cert, config.Key)
if err != nil {
return nil, ErrInvalidCertKeyPair
return nil, &CertKeyError{Err: err}
}
clientAuth := tls.RequestClientCert
if webSocket {