Documentation ¶
Index ¶
Constants ¶
View Source
const Certificate_Validity_Days = 90
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRSubject ¶
type CertificateUtility ¶
type CertificateUtility interface { LoadCert(encodedData []byte) (crt *x509.Certificate, appError apperrors.AppError) LoadKey(encodedData []byte) (key *rsa.PrivateKey, appError apperrors.AppError) LoadCSR(encodedData string) (csr *x509.CertificateRequest, appError apperrors.AppError) CheckCSRValues(csr *x509.CertificateRequest, subject CSRSubject) apperrors.AppError SignWithCA(caCrt *x509.Certificate, csr *x509.CertificateRequest, key *rsa.PrivateKey) (crtBase64 string, appError apperrors.AppError) }
func NewCertificateUtility ¶
func NewCertificateUtility() CertificateUtility
Click to show internal directories.
Click to hide internal directories.