git.iko.soy/typeable/oauth2-proxy
on master help sign in
log message in case of failure during loading system cert pool
commitbefab0521ad53e9a7211065cd6f382d635701144 authorLukasz Leszczuk <lleszczuk@gmail.com> dateTue 12 Nov 2019, 11:42 (7 years ago) parentd7a51e4
1 file changed+4−1
pkg/sessions/redis/redis_store.go+4−1
pkg/sessions/redis/redis_store.go+4−1
@@ -72,7 +72,10 @@ func newRedisClient(opts options.RedisStoreOptions) (*redis.Client, error) {
7272 }
7373
7474 if opts.RedisCAPath != "" {
75− rootCAs, _ := x509.SystemCertPool()
75+ rootCAs, err := x509.SystemCertPool()
76+ if err != nil {
77+ logger.Printf("failed to load system cert pool for redis connection, falling back to empty cert pool")
78+ }
7679 if rootCAs == nil {
7780 rootCAs = x509.NewCertPool()
7881 }