mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-01-20 05:09:41 +02:00
log message in case of failure during loading system cert pool
This commit is contained in:
parent
d7a51e4aab
commit
befab0521a
@ -72,7 +72,10 @@ func newRedisClient(opts options.RedisStoreOptions) (*redis.Client, error) {
|
||||
}
|
||||
|
||||
if opts.RedisCAPath != "" {
|
||||
rootCAs, _ := x509.SystemCertPool()
|
||||
rootCAs, err := x509.SystemCertPool()
|
||||
if err != nil {
|
||||
logger.Printf("failed to load system cert pool for redis connection, falling back to empty cert pool")
|
||||
}
|
||||
if rootCAs == nil {
|
||||
rootCAs = x509.NewCertPool()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user