1
0
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:
Lukasz Leszczuk 2019-11-12 11:42:03 +01:00
parent d7a51e4aab
commit befab0521a

View File

@ -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()
}