Update for docker/machine PR #1729
This commit is contained in:
1 parent
b1d453a0c2
commit
c7b4136d31
1 file changed
+4
-4
@@ -5,7 +5,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/docker/machine/utils"
|
"github.com/docker/machine/libmachine/cert"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -28,7 +28,7 @@ func main() {
|
|||||||
log.Fatalf("The CA key already exists. Please remove it or specify a different key/cert.")
|
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)
|
log.Printf("Error generating CA certificate: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ func main() {
|
|||||||
log.Fatalf("The client key already exists. Please remove it or specify a different key/cert.")
|
log.Fatalf("The client key already exists. Please remove it or specify a different key/cert.")
|
||||||
}
|
}
|
||||||
|
|
||||||
err = utils.GenerateCert(
|
err = cert.GenerateCert(
|
||||||
[]string{""},
|
[]string{""},
|
||||||
clientCertPath,
|
clientCertPath,
|
||||||
clientKeyPath,
|
clientKeyPath,
|
||||||
@@ -64,7 +64,7 @@ func main() {
|
|||||||
|
|
||||||
if _, err := os.Stat(serverCertPath); os.IsNotExist(err) {
|
if _, err := os.Stat(serverCertPath); os.IsNotExist(err) {
|
||||||
log.Printf("Creating server certificate: %s", serverCertPath)
|
log.Printf("Creating server certificate: %s", serverCertPath)
|
||||||
err = utils.GenerateCert(
|
err = cert.GenerateCert(
|
||||||
[]string{ip},
|
[]string{ip},
|
||||||
serverCertPath,
|
serverCertPath,
|
||||||
serverKeyPath,
|
serverKeyPath,
|
||||||
|
|||||||
Reference in new issue
Block a user