Versions in this module Expand all Collapse all v0 v0.1.0 Feb 22, 2020 Changes in this version + type Authority struct + func New(t *testing.T, options ...AuthorityOption) *Authority + func (a *Authority) CertPool() *x509.CertPool + func (a *Authority) Certificate() *x509.Certificate + func (a *Authority) Key() *rsa.PrivateKey + func (a *Authority) MustIssue(options ...IssueOption) *KeyPair + type AuthorityOption interface + func WithOrganization(organization string) AuthorityOption + type IssueOption interface + func WithDNS(name string) IssueOption + func WithEmail(email string) IssueOption + func WithIP(ipAddress net.IP) IssueOption + func WithURI(uri *url.URL) IssueOption + type KeyPair struct + func (kp *KeyPair) AsClientConfig() *tls.Config + func (kp *KeyPair) AsServerConfig() *tls.Config + func (kp *KeyPair) AsX509KeyPair() tls.Certificate + func (kp *KeyPair) Certificate() *x509.Certificate + func (kp *KeyPair) CertificatePEM() []byte + func (kp *KeyPair) Key() *rsa.PrivateKey + func (kp *KeyPair) KeyPEM() []byte + type Option interface + func WithCommonName(commonName string) Option + func WithRSABits(rsaBits int) Option + func WithTTL(ttl time.Duration) Option