Documentation ¶
Index ¶
- func CreateCATemplate(param TemplateParam) (*x509.Certificate, error)
- func CreateCRL(caCert *x509.Certificate, param CRLParam) (*pkix.CertificateList, error)
- func CreateClientTemplate(param TemplateParam, authorityKeyID []byte) (*x509.Certificate, error)
- func CreateServerTemplate(param TemplateParam, authorityKeyID []byte) (*x509.Certificate, error)
- func Sign(signer *x509.Certificate, signerPrivate crypto.Signer, ...) (*x509.Certificate, error)
- type CRLParam
- type TemplateParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCATemplate ¶
func CreateCATemplate(param TemplateParam) (*x509.Certificate, error)
CreateCATemplate creates certificate template for CA
func CreateCRL ¶
func CreateCRL(caCert *x509.Certificate, param CRLParam) (*pkix.CertificateList, error)
CreateCRL with given parameter
func CreateClientTemplate ¶
func CreateClientTemplate(param TemplateParam, authorityKeyID []byte) (*x509.Certificate, error)
CreateClientTemplate creates certificate template for server
func CreateServerTemplate ¶
func CreateServerTemplate(param TemplateParam, authorityKeyID []byte) (*x509.Certificate, error)
CreateServerTemplate creates certificate template for server
func Sign ¶
func Sign(signer *x509.Certificate, signerPrivate crypto.Signer, signee *x509.Certificate, signeePublic interface{}) (*x509.Certificate, error)
Sign certificate. The returned slice is the certificate in DER encoding
Types ¶
Click to show internal directories.
Click to hide internal directories.