import minio/pkg/certs as xcerts (#473)

update dependency to fix windows cert issues,
now handled properly by the pkg/certs package
in MinIO.
This commit is contained in:
Harshavardhana
2020-12-04 13:42:12 -08:00
committed by GitHub
parent dbbaae78f7
commit 132b08b40e
4 changed files with 21 additions and 16 deletions

View File

@@ -298,7 +298,7 @@ func (s *Server) Serve() (err error) {
caCertPool := x509.NewCertPool()
ok := caCertPool.AppendCertsFromPEM(caCert)
if !ok {
return fmt.Errorf("cannot parse CA certificate")
return fmt.Errorf("unable to parse CA certificate %s", s.TLSCACertificate)
}
httpsServer.TLSConfig.ClientCAs = caCertPool
httpsServer.TLSConfig.ClientAuth = tls.RequireAndVerifyClientCert