summaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorJohn Howard <jhoward@microsoft.com>2015-08-04 16:30:00 -0700
committerJohn Howard <jhoward@microsoft.com>2015-08-05 13:25:41 -0700
commit831b00303f1979dda6ed66980fc32a65f9229768 (patch)
tree12173f4785add8bf3241fb0518f1f4d729d784e4 /registry/registry.go
parentaec46ac0b20ea0c912148fcda12207db1bf93c1b (diff)
downloaddocker-831b00303f1979dda6ed66980fc32a65f9229768.tar.gz
Windows: Fix certificate directory for registry
Signed-off-by: John Howard <jhoward@microsoft.com>
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go
index a3123b965d..408bc8e1fd 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -58,7 +58,7 @@ func newTLSConfig(hostname string, isSecure bool) (*tls.Config, error) {
tlsConfig.InsecureSkipVerify = !isSecure
if isSecure {
- hostDir := filepath.Join(CertsDir, hostname)
+ hostDir := filepath.Join(CertsDir, cleanPath(hostname))
logrus.Debugf("hostDir: %s", hostDir)
if err := ReadCertsDirectory(&tlsConfig, hostDir); err != nil {
return nil, err