Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultCADir = ".snare" CertFile = "ca.pem" KeyFile = "ca-key.pem" )
Variables ¶
This section is empty.
Functions ¶
func LoadOrCreateCA ¶
func LoadOrCreateCA(dir string) (*x509.Certificate, *ecdsa.PrivateKey, error)
Types ¶
type HostCertCache ¶
type HostCertCache struct {
// contains filtered or unexported fields
}
func NewHostCertCache ¶
func NewHostCertCache(ca *x509.Certificate, key *ecdsa.PrivateKey) *HostCertCache
func (*HostCertCache) GetCertificate ¶
func (h *HostCertCache) GetCertificate(host string) (*x509.Certificate, *ecdsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.