Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The path to the file containing the X.509 ROOT CA certificate. CertFilePath string `hcl:"cert_file_path"` // The path to the file containing the X.509 ROOT CA private key. KeyFilePath string `hcl:"key_file_path"` }
Config is the configuration for a disk-based X509CA.
type X509CA ¶
type X509CA struct {
// contains filtered or unexported fields
}
X509CA is a CA that signs X509 certificates using a disk-based private key and ROOT CA certificate.
func New ¶
New creates a new disk-based X509CA. The returned X509CA is not configured. Call Configure() to configure it passing the HCL configuration.
func (*X509CA) IssueX509Certificate ¶
func (ca *X509CA) IssueX509Certificate(ctx context.Context, params *x509ca.X509CertificateParams) ([]*x509.Certificate, error)
IssueX509Certificate issues an X509 certificate using the disk-based private key and ROOT CA certificate. The certificate is bound to the given public key and subject.
Click to show internal directories.
Click to hide internal directories.