Documentation ¶
Index ¶
Constants ¶
View Source
const RootKeyName = "rootCA-key.pem"
View Source
const RootName = "rootCA.pem"
Variables ¶
View Source
var (
CaRoot = getCAROOT()
)
Functions ¶
This section is empty.
Types ¶
type CertCA ¶
type CertCA struct { CaCert *x509.Certificate CaKey crypto.PrivateKey // contains filtered or unexported fields }
func (*CertCA) Certificate ¶
func (m *CertCA) Certificate() (tls.Certificate, error)
func (*CertCA) GetCertificate ¶
func (m *CertCA) GetCertificate(helloInfo *tls.ClientHelloInfo) (*tls.Certificate, error)
type CertStorage ¶
type CertStorage struct {
// contains filtered or unexported fields
}
func NewCertStorage ¶
func NewCertStorage() *CertStorage
func (*CertStorage) Fetch ¶
func (tcs *CertStorage) Fetch(hostname string, gen func() (*tls.Certificate, error)) (*tls.Certificate, error)
type CounterEncryptorRand ¶
type CounterEncryptorRand struct {
// contains filtered or unexported fields
}
func NewCounterEncryptorRandFromKey ¶
func NewCounterEncryptorRandFromKey(key interface{}, seed []byte) (r CounterEncryptorRand, err error)
func (*CounterEncryptorRand) Read ¶
func (c *CounterEncryptorRand) Read(b []byte) (n int, err error)
func (*CounterEncryptorRand) Seed ¶
func (c *CounterEncryptorRand) Seed(b []byte)
Click to show internal directories.
Click to hide internal directories.