Documentation ¶
Index ¶
- func CreateCACertificate(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer) (*x509.Certificate, crypto.Signer)
- func CreateCertificate(tb testing.TB, tmpl, parent *x509.Certificate, pub, priv interface{}) *x509.Certificate
- func CreateX509SVID(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer, ...) (*x509.Certificate, crypto.Signer)
- func NewEC256Key(tb testing.TB) *ecdsa.PrivateKey
- func NewSerial(tb testing.TB) *big.Int
- type CA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCACertificate ¶
func CreateCACertificate(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer) (*x509.Certificate, crypto.Signer)
func CreateCertificate ¶
func CreateCertificate(tb testing.TB, tmpl, parent *x509.Certificate, pub, priv interface{}) *x509.Certificate
func CreateX509SVID ¶
func NewEC256Key ¶
func NewEC256Key(tb testing.TB) *ecdsa.PrivateKey
NewEC256Key returns an ECDSA key over the P256 curve
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func (*CA) CreateX509SVID ¶
func (*CA) Roots ¶
func (ca *CA) Roots() []*x509.Certificate
Click to show internal directories.
Click to hide internal directories.