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

Update for docker/machine PR #1729 #1466

Closed
wants to merge 1 commit into from
Closed
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
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