Documentation
¶
Index ¶
- func GenerateCertificateUsingX509Subject(subject pkix.Name) (certificate []byte, key []byte, expiryString string, err error)
- func GenerateCertificateUsingX509SubjectOptionalValues(commonName string, o, ou, l, p, c *string, subCACert *x509.Certificate, ...) (certificate []byte, key []byte, expiryString string, err error)
- func GenerateHSMSignedCertificate(unsignedCertificate *x509.Certificate, signerName string, ...) (*x509.Certificate, []byte, string, error)
- func GenerateHSMSignedCertificateWithPrivateKey(unsignedCertificate *x509.Certificate, parent *x509.Certificate, ...) (*x509.Certificate, []byte, *rsa.PrivateKey, error)
- func GeneratePemCertificate(subject pkix.Name, possiblyUseHSM bool) (pemCertificate []byte, pemPrivateKey []byte, expiryString string, err error)
- func GenerateSelfSignedRootCACertAndKey() (err error)
- func GenerateSelfSignedSubCACertAndKey() (err error)
- func GetRootCAPEMCert() []byte
- func GetSubCAPEMCert() []byte
- func GetSubjectFromCSR(csr string) (subject *pkix.Name, err error)
- func SetRootCA(rootCert *x509.Certificate, pemRootCACert []byte, rsaRootKey *rsa.PrivateKey)
- func SetSubCA(rootCert *x509.Certificate, pemRootCACert []byte, rsaRootKey *rsa.PrivateKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificateUsingX509SubjectOptionalValues ¶
func GenerateCertificateUsingX509SubjectOptionalValues(commonName string, o, ou, l, p, c *string, subCACert *x509.Certificate, casubCAKeyCert *rsa.PrivateKey) (certificate []byte, key []byte, expiryString string, err error)
func GenerateHSMSignedCertificate ¶
func GenerateHSMSignedCertificate(unsignedCertificate *x509.Certificate, signerName string, parent *x509.Certificate, parentSignerName string) (*x509.Certificate, []byte, string, error)
func GenerateHSMSignedCertificateWithPrivateKey ¶
func GenerateHSMSignedCertificateWithPrivateKey(unsignedCertificate *x509.Certificate, parent *x509.Certificate, parentSignerName string) (*x509.Certificate, []byte, *rsa.PrivateKey, error)
func GeneratePemCertificate ¶
func GeneratePemCertificate(subject pkix.Name, possiblyUseHSM bool) (pemCertificate []byte, pemPrivateKey []byte, expiryString string, err error)
GeneratePemCertificate generates a PEM certificate using a CSR
func GenerateSelfSignedRootCACertAndKey ¶
func GenerateSelfSignedRootCACertAndKey() (err error)
GenerateSelfSignedRootCACertAndKey generates the root certificate
func GenerateSelfSignedSubCACertAndKey ¶
func GenerateSelfSignedSubCACertAndKey() (err error)
GenerateSelfSignedSubCACertAndKey generates the sub CA certificate
func GetRootCAPEMCert ¶
func GetRootCAPEMCert() []byte
func GetSubCAPEMCert ¶
func GetSubCAPEMCert() []byte
func GetSubjectFromCSR ¶
GetSubjectFromCSR get the subject from CSR
func SetRootCA ¶
func SetRootCA(rootCert *x509.Certificate, pemRootCACert []byte, rsaRootKey *rsa.PrivateKey)
func SetSubCA ¶
func SetSubCA(rootCert *x509.Certificate, pemRootCACert []byte, rsaRootKey *rsa.PrivateKey)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.