Documentation ¶
Index ¶
- func MustCreateCert(t *testing.T, pkData []byte, spec *cmapi.Certificate) []byte
- func MustCreateCertWithNotBeforeAfter(t *testing.T, pkData []byte, spec *cmapi.Certificate, ...) []byte
- func MustCreateCryptoBundle(t *testing.T, crt *cmapi.Certificate, fixedClock *fakeclock.FakeClock) cryptoBundle
- func MustCreatePEMPrivateKey(t *testing.T) []byte
- func MustGenerateCSRImpl(t *testing.T, pkData []byte, cert *cmapi.Certificate) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCreateCert ¶ added in v1.3.0
MustCreateCert returns a self-signed x509 certificate
func MustCreateCertWithNotBeforeAfter ¶ added in v1.3.0
func MustCreateCertWithNotBeforeAfter(t *testing.T, pkData []byte, spec *cmapi.Certificate, notBefore, notAfter time.Time) []byte
MustCreateCertWithNotBeforeAfter returns a self-signed x509 cert for Certificate with the provided NotBefore, NotAfter values
func MustCreateCryptoBundle ¶
func MustCreateCryptoBundle(t *testing.T, crt *cmapi.Certificate, fixedClock *fakeclock.FakeClock) cryptoBundle
MustCreateCryptoBundle creates a cryptoBundle to be used with tests or fails.
func MustCreatePEMPrivateKey ¶ added in v1.3.0
MustCreatePEMPrivateKey returns a PEM encoded 2048 bit RSA private key
func MustGenerateCSRImpl ¶ added in v1.3.0
MustGenerateCSRImpl returns PEM encoded certificate signing request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.