Documentation ¶
Index ¶
Constants ¶
View Source
const PEMBlockTypeCSR string = "CERTIFICATE REQUEST"
View Source
const PEMBlockTypeCertificate string = "CERTIFICATE"
View Source
const PEMBlockTypePK string = "PRIVATE KEY"
View Source
const PKAlgorithmECDSA string = "ECDSA"
View Source
const PKAlgorithmRSA string = "RSA"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
func CreateAuthority ¶
type CSR ¶
type CSR struct { RawData []byte CertificateRequest *x509.CertificateRequest Key *Key }
type Certificate ¶
type Certificate struct { RawData []byte Cert *x509.Certificate }
func (*Certificate) Export ¶
func (cert *Certificate) Export(fileName string) error
type Signer ¶
type Signer struct { Cert *x509.Certificate Key *Key }
func (*Signer) SignCertificate ¶
func (signer *Signer) SignCertificate(csr *x509.Certificate, publicKey crypto.PublicKey) (cert Certificate, err error)
Click to show internal directories.
Click to hide internal directories.