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 Encrypted
- type Keys
- func (keys *Keys) AppendClient(username string, newClient *Client)
- func (keys *Keys) CAExists(directory string, username string) error
- func (keys *Keys) ClientExists(directory string, username string) error
- func (keys *Keys) GenerateCA() error
- func (keys *Keys) GenerateClient(domains *configuration.Domains, ips *configuration.IPs, username string) error
- func (keys *Keys) GeneratePemBundle(directory string, username string, client *Client) error
- func (keys *Keys) GenerateServer(domains *configuration.Domains, ips *configuration.IPs) error
- func (keys *Keys) LoadClients(directory string) error
- func (keys *Keys) ServerExists(directory string, agent 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 *ecdsa.PrivateKey `json:"-"` Certificate *x509.Certificate `json:"-"` PrivateKeyPath string `json:"-"` CertificatePath string `json:"-"` CertificateBytes []byte PrivateKeyBytes []byte Sni int64 }
type Client ¶ added in v0.0.10
type Client struct { PrivateKey *ecdsa.PrivateKey `json:"-"` Certificate *x509.Certificate `json:"-"` PrivateKeyPath string `json:"-"` CertificatePath string `json:"-"` CertificateBytes []byte PrivateKeyBytes []byte Sni int64 }
func (*Client) Generate ¶ added in v0.0.10
func (client *Client) Generate(ca *CA, domains *configuration.Domains, ips *configuration.IPs, CN string) error
type Keys ¶
type Keys struct { CA *CA Server *Server Clients map[string]*Client Reloader *keypairReloader `json:"-"` }
func (*Keys) AppendClient ¶ added in v0.0.10
func (*Keys) ClientExists ¶ added in v0.0.14
func (*Keys) GenerateCA ¶ added in v0.0.64
func (*Keys) GenerateClient ¶ added in v0.0.64
func (keys *Keys) GenerateClient(domains *configuration.Domains, ips *configuration.IPs, username string) error
func (*Keys) GeneratePemBundle ¶ added in v0.0.10
func (*Keys) GenerateServer ¶ added in v0.0.64
func (keys *Keys) GenerateServer(domains *configuration.Domains, ips *configuration.IPs) error
func (*Keys) LoadClients ¶ added in v0.0.10
type Server ¶ added in v0.0.10
type Server struct { PrivateKey *ecdsa.PrivateKey `json:"-"` Certificate *x509.Certificate `json:"-"` PrivateKeyPath string `json:"-"` CertificatePath string `json:"-"` CertificateBytes []byte PrivateKeyBytes []byte Sni int64 }
func (*Server) Generate ¶ added in v0.0.10
func (server *Server) Generate(ca *CA, domains *configuration.Domains, ips *configuration.IPs, CN string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.