Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Store certs in ~/.boot2docker/certs #271

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,13 @@ func RequestCertsUsingSSH(m driver.Machine) (string, error) {

b, err := cmd.Output()
if err == nil {
dir, err := cfgDir(".docker")
dir, err := cfgDir(".boot2docker")
if err != nil {
return "", err
}

certDir = filepath.Join(dir, "certs", m.GetName())

// Open the tar archive for reading.
r := bytes.NewReader(b)
tr := tar.NewReader(r)
Expand All @@ -330,7 +332,6 @@ func RequestCertsUsingSSH(m driver.Machine) (string, error) {
return "", err
}
filename := filepath.Base(hdr.Name)
certDir = filepath.Join(dir, m.GetName())
if err := os.MkdirAll(certDir, 0755); err != nil {
return "", err
}
Expand Down