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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user