Versions in this module Expand all Collapse all v1 v1.0.1 Oct 10, 2023 Changes in this version type Client + func (c *Client) CancelCert(id string) (err error) v1.0.0 Apr 13, 2023 v1.0.0-beta.2 Aug 24, 2022 v1.0.0-beta.1 Jun 21, 2022 v0 v0.5.2 Apr 24, 2022 v0.5.1 Apr 24, 2022 Changes in this version type Client + func (c *Client) CleanUnfinished() (err error) v0.4.2 Apr 23, 2022 v0.4.1 Apr 23, 2022 v0.4.0 Apr 23, 2022 v0.3.0 Apr 23, 2022 Changes in this version + const ApiEndpoint + var ApiReqFactory = struct{ ... } + var CertStatus = struct{ ... } + var EcdsaCurves = map[string]elliptic.Curve + var SignatureAlgorithms = map[string]x509.SignatureAlgorithm + var VerifyDomainsMethod = struct{ ... } + func CSRGeneratorWrapper(keyType string, subj pkix.Name, key interface{}, sigAlgStr string) (csr []byte, err error) + func GenEccCSR(subj pkix.Name, key *ecdsa.PrivateKey, sigAlg x509.SignatureAlgorithm) (csr []byte, err error) + func GenEccKey(curve elliptic.Curve) (key *ecdsa.PrivateKey) + func GenRsaCSR(subj pkix.Name, key *rsa.PrivateKey, sigAlg x509.SignatureAlgorithm) (csr []byte, err error) + func GenRsaKey(bits int) *rsa.PrivateKey + func GetCSRString(csr []byte) (csrStr string) + func KeyGeneratorWrapper(keyType string, keyBits int, keyCurve string) (key interface{}) + func WriteCSRPem(out io.Writer, csr []byte) (err error) + func WriteEccPrivKeyPem(out io.Writer, key *ecdsa.PrivateKey) (err error) + func WritePrivKeyWrapper(keyType string, key interface{}, keyFile string) (err error) + func WriteRsaPrivKeyPem(out io.Writer, key *rsa.PrivateKey) (err error) + type CertificateContentModel struct + CaBundle string + Certificate string + type CertificateInfoModel struct + AdditionalDomains string + CommonName string + Created string + Expires string + ID string + ReplacementFor string + Status string + Type string + Validation ValidationInfoModel + ValidationEmails string + ValidationType string + type Client struct + ApiKey string + func (c *Client) CreateCert(domains, csr, days, isStrictDomains string) (cert CertificateInfoModel, err error) + func (c *Client) DeleteCert(id string) (err error) + func (c *Client) DownloadCertInline(certID, includeCrossSigned string) (cert CertificateContentModel, err error) + func (c *Client) GetCert(id string) (cert CertificateInfoModel, err error) + func (c *Client) ListCerts(status, search, limit, page string) (listCertsRsp ListCertsModel, err error) + func (c *Client) VerificationStatus(certID string) (verificationStatusRsp VerificationStatusModel, err error) + func (c *Client) VerifyDomains(certID, validationMethod, validationEmail string) (verifyDomainsRsp VerifyDomainsModel, err error) + type ListCertsModel struct + Limit int + Page int + ResultCount int + Results []CertificateInfoModel + TotalCount int + type OtherValidationInfoModel struct + CNameValidationP1 string + CNameValidationP2 string + FileValidationContent []string + FileValidationUrlHttp string + FileValidationUrlHttps string + type ValidationDetailModel struct + Method string + Status string + type ValidationInfoModel struct + EmailValidation map[string][]string + OtherMethods map[string]OtherValidationInfoModel + type VerificationStatusModel struct + Details map[string]ValidationDetailModel + ValidationCompleted int + type VerifyDomainsErrorDetailModel struct + ActualRecord string + CNameFound int + RecordCorrect int + TargetHost string + TargetRecord string + type VerifyDomainsErrorModel struct + Code int + Details map[string]map[string]VerifyDomainsErrorDetailModel + Type string + type VerifyDomainsModel struct + Error VerifyDomainsErrorModel + Success bool