Documentation ¶
Index ¶
- func MakeTemplate(subject *pkix.Name, publickey *crypto.PublicKey, isCA bool) (*x509.Certificate, error)
- func PkixField(r *bufio.Reader, label string) []string
- func PkixName(stream io.Reader) (name *pkix.Name)
- func SignCaCertificate(template *x509.Certificate, publickey crypto.PublicKey, ...) ([]byte, error)
- func StoreCertificate(cert []byte, filepath string, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTemplate ¶
func MakeTemplate(subject *pkix.Name, publickey *crypto.PublicKey, isCA bool) (*x509.Certificate, error)
MakeTemplate constructs a certificate authority template with public key.
func SignCaCertificate ¶
func SignCaCertificate(template *x509.Certificate, publickey crypto.PublicKey, privatekey crypto.PrivateKey) ([]byte, error)
SignCaCertificate self-signs the certificate authority certificate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.