Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertRequest ¶
type CertRequest struct { Domain string `json:"domain"` DomainIsCn bool `json:"onlycn"` ValidDays int `json:"valid"` San []string `json:"san"` }
CertRequest contains information about the requested cert
type CertStore ¶
type CertStore struct {
// contains filtered or unexported fields
}
func NewCertStore ¶
func (*CertStore) GetCertificate ¶
func (c *CertStore) GetCertificate(request *CertRequest) (*CertificateResource, error)
GetCertificate retrieves an certificate from acme or storage
type CertificateResource ¶
type CertificateResource struct { Domain string `json:"domain"` PrivateKey []byte `json:"key"` Certificate []byte `json:"certificate"` IssuerCertificate []byte `json:"issuer"` }
CertificateResource represent everything from our cert
func (*CertificateResource) GetNoBundleCertificate ¶
func (c *CertificateResource) GetNoBundleCertificate() []byte
GetNoBundleCertificate ensures to return the cert without ca
type User ¶
type User struct { Email string `json:"email"` Registration *registration.Resource `json:"registration"` Key []byte `json:"key"` }
func (User) GetPrivateKey ¶
func (u User) GetPrivateKey() crypto.PrivateKey
func (User) GetRegistration ¶
func (u User) GetRegistration() *registration.Resource
Click to show internal directories.
Click to hide internal directories.