From 4676e458367f66c1b0ab6d1fc492d3b700fee0d5 Mon Sep 17 00:00:00 2001 From: Egor Smolyakov Date: Mon, 7 Dec 2015 13:18:58 +0200 Subject: [PATCH 1/2] Fix bug --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf6f5626..f89b8973 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ myUser := MyUser{ // We specify an optPort of 5001 because we aren't running as root and can't // bind a listener to port 443 (used later when we attempt to pass challenge). client, err := acme.NewClient("http://192.168.99.100:4000", &myUser, rsaKeySize, "5001") -if err != inl { +if err != nil { log.Fatal(err) } From e8a631338c0246ccd8fe1c9185bf86ec0f175a7d Mon Sep 17 00:00:00 2001 From: Egor Smolyakov Date: Mon, 7 Dec 2015 13:21:54 +0200 Subject: [PATCH 2/2] Added bundle option --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f89b8973..e76a3d99 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,8 @@ if err != nil { // The acme library takes care of completing the challenges to obtain the certificate(s). // Of course, the hostnames must resolve to this machine or it will fail. -certificates, err := client.ObtainCertificates([]string{"mydomain.com"}) +bundle := false +certificates, err := client.ObtainCertificates([]string{"mydomain.com"}, bundle) if err != nil { log.Fatal(err) }