api

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiServer

func NewApiServer(listen string, store *certstore.CertStore)

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

func (*Client) WriteCert

func (c *Client) WriteCert(cert *certstore.CertificateResource, filepath string) (err error)

WriteCert writes the cert to file

func (*Client) WriteKey

func (c *Client) WriteKey(cert *certstore.CertificateResource, filepath string) (err error)

WriteKey writes the private key to file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL