Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateCaCertificateInput ¶
type GenerateCaCertificateInput struct { EmailAddresses []string // EmailAddresses EcdsaCurve string // EcdsaCurve specify this if you want EcsdasCurve, if you leave it blank it will default to RSA MaxDays float64 // MaxDays RsaBits int // RsaBits Password string // Password Organization string // Orgnaization DNSNames []string // DNSNames The list of DNS names RawCertificate *x509.Certificate // RawCertificate alternative one can forgo all the params above and simply stick the raw certficiate to be generated }
GenerateCaCertificateInput the input of the function.
type GenerateCaCertificateOutput ¶
GenerateCaCertificateOutput the output of the function
func GenerateCaCertificate ¶
func GenerateCaCertificate(g GenerateCaCertificateInput) (GenerateCaCertificateOutput, error)
GenerateCaCertificate the CA certificate
type GenerateCertificateSigningRequestInput ¶
type GenerateCertificateSigningRequestInput struct { RsaBits int // RsaBits Country []string // Country Province []string // Province Locality []string // Locality EmailAddresses []string // EmailAddresses Organization []string // Orginzation OrganizationalUnit []string // OrginzationUnit CommonName string // CommonName DNSNames []string // DnsNames Password string // Password RawCertificateRequest *x509.CertificateRequest // RawCertificateRequest }
GenerateCertificateSigningRequestInput the input for the function
type GenerateCertificateSigningRequestOutput ¶
GenerateCertificateSigningRequestOutput the output for the function
func GenerateCertificateSigningRequest ¶
func GenerateCertificateSigningRequest(g GenerateCertificateSigningRequestInput) (GenerateCertificateSigningRequestOutput, error)
type SignCsrInput ¶
type SignCsrInput struct { CaCert []byte // CaCert CaKey []byte // CaKey Csr []byte // Csr the certficiate request to sign IsCa bool // IsCa whether to sign the certificate as Certificate authority ValidDays int // ValidDays }
SignCsrInput the input of the function
Source Files ¶
Click to show internal directories.
Click to hide internal directories.