Documentation ¶
Index ¶
- Constants
- func NewClients() map[string]*Client
- func NewKeypairReloader(certPath, keyPath string) (*keypairReloader, error)
- func PEMDecode(ContentBytes []byte) []byte
- func PEMEncode(FileType string, ContentBytes []byte) ([]byte, error)
- type CA
- type Client
- type Keys
- func (keys *Keys) AppendClient(username string, newClient *Client)
- func (keys *Keys) ClientExists(directory string, username string) error
- func (keys *Keys) Exists(directory string, username string) error
- func (keys *Keys) Generate(domains []string, ips []string) error
- func (keys *Keys) GeneratePemBundle(directory string, username string, client *Client) error
- func (keys *Keys) LoadClients(directory string) error
- func (keys *Keys) RegenerateClient(domains []string, ips []string) error
- func (keys *Keys) RegenerateServer(domains []string, ips []string) error
- type Server
Constants ¶
View Source
const CERTIFICATE = "CERTIFICATE"
View Source
const PRIVATE_KEY = "PRIVATE KEY"
Variables ¶
This section is empty.
Functions ¶
func NewClients ¶ added in v0.0.10
func NewKeypairReloader ¶ added in v0.0.57
Types ¶
type CA ¶ added in v0.0.10
type CA struct { PrivateKey *rsa.PrivateKey Certificate *x509.Certificate PrivateKeyPath string CertificatePath string CertificateBytes []byte PrivateKeyBytes []byte Sni int64 }
type Client ¶ added in v0.0.10
type Client struct { PrivateKey *rsa.PrivateKey Certificate *x509.Certificate PrivateKeyPath string CertificatePath string CertificateBytes []byte PrivateKeyBytes []byte Sni int64 }
type Keys ¶
func (*Keys) AppendClient ¶ added in v0.0.10
func (*Keys) ClientExists ¶ added in v0.0.14
func (*Keys) GeneratePemBundle ¶ added in v0.0.10
func (*Keys) LoadClients ¶ added in v0.0.10
func (*Keys) RegenerateClient ¶ added in v0.0.57
Source Files ¶
Click to show internal directories.
Click to hide internal directories.