mirror of
https://github.com/go-acme/lego.git
synced 2024-12-27 03:32:05 +02:00
Merge pull request #82 from tsileo/patch-1
Fix the example in the README
This commit is contained in:
commit
2e5ae296cc
@ -176,9 +176,9 @@ 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.
|
||||
bundle := false
|
||||
certificates, err := client.ObtainCertificate([]string{"mydomain.com"}, bundle, nil)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
certificates, failures := client.ObtainCertificate([]string{"mydomain.com"}, bundle, nil)
|
||||
if len(failures) > 0 {
|
||||
log.Fatal(failures)
|
||||
}
|
||||
|
||||
// Each certificate comes back with the cert bytes, the bytes of the client's
|
||||
|
Loading…
Reference in New Issue
Block a user