Documentation ¶
Index ¶
- func CreateCRT(RootCa *x509.Certificate, RootKey *rsa.PrivateKey, info CertInformation) error
- func Parse(crtPath, keyPath string) (rootcertificate *x509.Certificate, rootPrivateKey *rsa.PrivateKey, err error)
- func ParseCrt(path string) (*x509.Certificate, error)
- func ParseKey(path string) (*rsa.PrivateKey, error)
- type CertInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCRT ¶
func CreateCRT(RootCa *x509.Certificate, RootKey *rsa.PrivateKey, info CertInformation) error
CreateCRT create crt
func Parse ¶
func Parse(crtPath, keyPath string) (rootcertificate *x509.Certificate, rootPrivateKey *rsa.PrivateKey, err error)
Parse Parse
Types ¶
type CertInformation ¶
type CertInformation struct { Country []string Organization []string OrganizationalUnit []string EmailAddress []string Province []string Locality []string CommonName string CrtName, KeyName string IsCA bool Names []pkix.AttributeTypeAndValue IPAddresses []net.IP Domains []string }
func CreateCertInformation ¶
func CreateCertInformation() CertInformation
CreateCertInformation CreateCertInformation
Click to show internal directories.
Click to hide internal directories.