diff --git a/config/http_config.go b/config/http_config.go
index <HASH>..<HASH> 100644
--- a/config/http_config.go
+++ b/config/http_config.go
@@ -170,6 +170,7 @@ func (a *OAuth2) SetDirectory(dir string) {
 		return
 	}
 	a.ClientSecretFile = JoinDir(dir, a.ClientSecretFile)
+	a.TLSConfig.SetDirectory(dir)
 }
 
 // HTTPClientConfig configures an HTTP client.
Call SetDirectory in OAuth TLS Config (#<I>)