mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
tls: Better error message when certificate curve is not supported (#13462)
This commit is contained in:
parent
25b5904b84
commit
d86513cbba
@ -56,7 +56,7 @@ func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err er
|
||||
|
||||
var x509Cert *x509.Certificate
|
||||
if x509Cert, err = x509.ParseCertificate(pemBlock.Bytes); err != nil {
|
||||
return nil, ErrSSLUnexpectedData(err)
|
||||
return nil, ErrSSLUnexpectedData(nil).Msg("Failed to parse `%s`: %s", certFile, err.Error())
|
||||
}
|
||||
|
||||
x509Certs = append(x509Certs, x509Cert)
|
||||
|
Loading…
Reference in New Issue
Block a user