From caba7ddee796de3f2dfe6aab113ab5f118a7131e Mon Sep 17 00:00:00 2001 From: xenolf Date: Wed, 18 Nov 2015 19:53:42 +0100 Subject: [PATCH] Add comment to ObtainSANCertificate --- acme/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acme/client.go b/acme/client.go index 15e1d4c7..23e189f4 100644 --- a/acme/client.go +++ b/acme/client.go @@ -226,6 +226,11 @@ func (c *Client) ObtainCertificates(domains []string, bundle bool) ([]Certificat return certs, failures } +// ObtainSANCertificate tries to obtain a single certificate using all domains passed into it. +// The first domain in domains is used for the CommonName field of the certificate, all other +// domains are added using the Subject Alternate Names extension. +// If bundle is true, the []byte contains both the issuer certificate and +// your issued certificate as a bundle. func (c *Client) ObtainSANCertificate(domains []string, bundle bool) (CertificateResource, map[string]error) { if bundle { logf("[INFO] acme: Obtaining bundled SAN certificate for %v", strings.Join(domains, ", "))