mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
proxy: add debug message for cert pool
This commit is contained in:
parent
45e6a8dc57
commit
b93a8aa79c
1 changed files with 2 additions and 0 deletions
|
@ -78,12 +78,14 @@ func NewGRPCClientConn(opts *Options) (*grpc.ClientConn, error) {
|
|||
if ok := cp.AppendCertsFromPEM(ca); !ok {
|
||||
return nil, fmt.Errorf("failed to append CA cert to certPool")
|
||||
}
|
||||
log.Debug().Msg("proxy/clients: using a custom certificate authority")
|
||||
} else {
|
||||
newCp, err := x509.SystemCertPool()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cp = newCp
|
||||
log.Debug().Msg("proxy/clients: using system certificate pool")
|
||||
}
|
||||
|
||||
log.Debug().Str("cert-override-name", opts.OverrideCertificateName).Str("addr", connAddr).Msgf("proxy/clients: grpc connection")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue