Fix example call to ObtainCertificate (#333)

The previous example left out the MustStaple argument.
This commit is contained in:
Jacob Hoffman-Andrews 2016-12-26 15:41:19 -08:00 committed by xenolf
parent e9c3078492
commit ca19ea1c19

View file

@ -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)
}