package testutil
import "github.com/docker/distribution/Godeps/_workspace/src/github.com/docker/libtrust/testutil"
Index ¶
- func GenerateIntermediate(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
- func GenerateTrustCA(pub crypto.PublicKey, priv crypto.PrivateKey) (*x509.Certificate, error)
- func GenerateTrustCert(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
Functions ¶
func GenerateIntermediate ¶
func GenerateIntermediate(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
GenerateIntermediate generates an intermediate certificate for testing using the parent certificate (likely a CA) and the provided keys.
func GenerateTrustCA ¶
func GenerateTrustCA(pub crypto.PublicKey, priv crypto.PrivateKey) (*x509.Certificate, error)
GenerateTrustCA generates a new certificate authority for testing.
func GenerateTrustCert ¶
func GenerateTrustCert(key crypto.PublicKey, parentKey crypto.PrivateKey, parent *x509.Certificate) (*x509.Certificate, error)
GenerateTrustCert generates a new trust certificate for testing. Unlike the intermediate certificates, this certificate should be used for signature only, not creating certificates.
Source Files ¶
- Version
- v2.0.0-alpha.3+incompatible
- Published
- Mar 7, 2015
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 hours ago –
Tools for package owners.