Documentation
¶
Index ¶
- func NewApiServer(listen string, store *certstore.CertStore)
- type Client
- func (c *Client) Get(domain string, san []string, onlyCN bool, valid int) (cert *certstore.CertificateResource, err error)
- func (c *Client) WriteBundle(cert *certstore.CertificateResource, filepath string) (err error)
- func (c *Client) WriteCA(cert *certstore.CertificateResource, filepath string) (err error)
- func (c *Client) WriteCert(cert *certstore.CertificateResource, filepath string) (err error)
- func (c *Client) WriteKey(cert *certstore.CertificateResource, filepath string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiServer ¶
Types ¶
type Client ¶
type Client struct {
Address string
}
Client talks with the API
func (*Client) Get ¶
func (c *Client) Get(domain string, san []string, onlyCN bool, valid int) (cert *certstore.CertificateResource, err error)
Get retrieves the cert, private key and ca bundle
func (*Client) WriteBundle ¶
func (c *Client) WriteBundle(cert *certstore.CertificateResource, filepath string) (err error)
WriteBundle writes the cert + ca to file
func (*Client) WriteCA ¶
func (c *Client) WriteCA(cert *certstore.CertificateResource, filepath string) (err error)
WriteCA writes the ca chain to file
Click to show internal directories.
Click to hide internal directories.