Documentation ¶
Index ¶
- func CreateSelfSignedCA(certInfo CertificateInfo) (*x509.Certificate, *rsa.PrivateKey, error)
- func CreateServerCertificate(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey, ...) (*x509.Certificate, *rsa.PrivateKey, error)
- func NewCertificateTemplate(caCert bool, certInfo CertificateInfo) *x509.Certificate
- func ReadCertificate(filepath string) (*x509.Certificate, error)
- func ReadPrivateKey(filepath string) (*rsa.PrivateKey, error)
- func WriteCertificate(filepath string, cert *x509.Certificate) error
- func WriteKey(filepath string, key *rsa.PrivateKey) error
- type CertificateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSelfSignedCA ¶
func CreateSelfSignedCA(certInfo CertificateInfo) (*x509.Certificate, *rsa.PrivateKey, error)
func CreateServerCertificate ¶
func CreateServerCertificate(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey, certInfo CertificateInfo) (*x509.Certificate, *rsa.PrivateKey, error)
func NewCertificateTemplate ¶
func NewCertificateTemplate(caCert bool, certInfo CertificateInfo) *x509.Certificate
func ReadCertificate ¶
func ReadCertificate(filepath string) (*x509.Certificate, error)
func ReadPrivateKey ¶
func ReadPrivateKey(filepath string) (*rsa.PrivateKey, error)
func WriteCertificate ¶
func WriteCertificate(filepath string, cert *x509.Certificate) error
Types ¶
type CertificateInfo ¶
Click to show internal directories.
Click to hide internal directories.