Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Update for docker/machine PR #1729
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilkie committed Sep 24, 2015
1 parent b1d453a commit c7b4136
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tls/generate_certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/docker/machine/utils"
"github.com/docker/machine/libmachine/cert"
)

const (
Expand All @@ -28,7 +28,7 @@ func main() {
log.Fatalf("The CA key already exists. Please remove it or specify a different key/cert.")
}

if err := utils.GenerateCACertificate(caCertPath, caKeyPath, org, bits); err != nil {
if err := cert.GenerateCACertificate(caCertPath, caKeyPath, org, bits); err != nil {
log.Printf("Error generating CA certificate: %s", err)
}
}
Expand All @@ -41,7 +41,7 @@ func main() {
log.Fatalf("The client key already exists. Please remove it or specify a different key/cert.")
}

err = utils.GenerateCert(
err = cert.GenerateCert(
[]string{""},
clientCertPath,
clientKeyPath,
Expand All @@ -64,7 +64,7 @@ func main() {

if _, err := os.Stat(serverCertPath); os.IsNotExist(err) {
log.Printf("Creating server certificate: %s", serverCertPath)
err = utils.GenerateCert(
err = cert.GenerateCert(
[]string{ip},
serverCertPath,
serverKeyPath,
Expand Down

0 comments on commit c7b4136

Please sign in to comment.