From 4801a4779e4abfc6063f1bf651bc740f850f9771 Mon Sep 17 00:00:00 2001 From: xenolf Date: Wed, 11 Nov 2015 18:05:09 +0100 Subject: [PATCH] Make the CLI use SAN certs --- cli_handlers.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cli_handlers.go b/cli_handlers.go index e0e9e891..0e6c343e 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -125,7 +125,7 @@ func run(c *cli.Context) { logger().Fatal("Please specify --domains") } - certs, failures := client.ObtainCertificates(c.GlobalStringSlice("domains"), true) + cert, failures := client.ObtainSANCertificate(c.GlobalStringSlice("domains"), true) if len(failures) > 0 { for k, v := range failures { logger().Printf("[%s] Could not obtain certificates\n\t%v", k, v) @@ -137,9 +137,10 @@ func run(c *cli.Context) { logger().Fatalf("Cound not check/create path: %v", err) } - for _, certRes := range certs { - saveCertRes(certRes, conf) - } + //for _, certRes := range certs { + // saveCertRes(certRes, conf) + //} + saveCertRes(cert, conf) } func revoke(c *cli.Context) {