View definition

(*Client).ObtainCertificate

Defined in github.com/xenolf/lego/acme/client.go

Description

ObtainCertificate 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. A new private key is generated for every invocation of this function. If you do not want that you can supply your own private key in the privKey parameter. If this parameter is non-nil it will be used instead of generating a new one. If bundle is true, the []byte contains both the issuer certificate and your issued certificate as a bundle. This function will never return a partial certificate. If one domain in the list fails, the whole certificate will fail.

ObtainCertificate is referenced in 13 repositories

github.com/xenolf/lego github.com/dkumor/acmewrapper github.com/kalbasit/lego-etcd

...