Documentation ¶
Index ¶
- func GenerateCSR(name pkix.Name, privateKey interface{}) (csrDerBytes []byte, err error)
- func GenerateRSAKey() (privateKey *rsa.PrivateKey, err error)
- func GenerateSelfSignedSigningCertificate(cn string) (*x509.Certificate, []byte, *rsa.PrivateKey, error)
- func GenerateSignedCertificate(cn string, signingCert *x509.Certificate, signingKey *rsa.PrivateKey) (*x509.Certificate, []byte, *rsa.PrivateKey, []byte, error)
- func GenerateX509ertificate(subject pkix.Name, keyUsage x509.KeyUsage, isCA bool) (*x509.Certificate, string)
- func GetExpiryOfPEMCertificate(pemCert []byte) (expiry string, err error)
- func PemToCert(pemCert []byte) (cert *x509.Certificate, err error)
- func PemToRSAPrivateKey(pemKey []byte) (rsaKey *rsa.PrivateKey, err error)
- func SignCertificate(unsignedCertificate *x509.Certificate, parent *x509.Certificate, ...) (*x509.Certificate, []byte, *rsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCSR ¶
func GenerateRSAKey ¶
func GenerateRSAKey() (privateKey *rsa.PrivateKey, err error)
func GenerateSelfSignedSigningCertificate ¶
func GenerateSelfSignedSigningCertificate(cn string) (*x509.Certificate, []byte, *rsa.PrivateKey, error)
func GenerateSignedCertificate ¶
func GenerateSignedCertificate(cn string, signingCert *x509.Certificate, signingKey *rsa.PrivateKey) (*x509.Certificate, []byte, *rsa.PrivateKey, []byte, error)
func GenerateX509ertificate ¶
func PemToRSAPrivateKey ¶
func PemToRSAPrivateKey(pemKey []byte) (rsaKey *rsa.PrivateKey, err error)
func SignCertificate ¶
func SignCertificate(unsignedCertificate *x509.Certificate, parent *x509.Certificate, parentPrivateKey *rsa.PrivateKey) (*x509.Certificate, []byte, *rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.