Fix example call to ObtainCertificate (#333)
The previous example left out the MustStaple argument.
This commit is contained in:
parent
e9c3078492
commit
ca19ea1c19
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ if err != nil {
|
|||
// The acme library takes care of completing the challenges to obtain the certificate(s).
|
||||
// The domains must resolve to this machine or you have to use the DNS challenge.
|
||||
bundle := false
|
||||
certificates, failures := client.ObtainCertificate([]string{"mydomain.com"}, bundle, nil)
|
||||
certificates, failures := client.ObtainCertificate([]string{"mydomain.com"}, bundle, nil, false)
|
||||
if len(failures) > 0 {
|
||||
log.Fatal(failures)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue