Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Name string `json:"name" yaml:"name"` Config *CertificateConfig `json:"config" yaml:"config"` PemCertificate string `json:"PemCertificate" yaml:"PemCertificate"` PemPrivateKey string `json:"PemPrivateKey" yaml:"PemPrivateKey"` }
type CertificateConfig ¶
type CertificateConfig struct { Country string `json:"country" yaml:"country"` State string `json:"state" yaml:"state"` Organization string `json:"organization" yaml:"organization"` CommonName string `json:"commonName" yaml:"commonName"` City string `json:"city" yaml:"city"` FQDNs []string `json:"fqdns" yaml:"fqdns"` IpAddresses []string `json:"ipAddresses" yaml:"ipAddresses"` OrganizationalUnit string `json:"organizationalUnit" yaml:"organizationalUnit"` AdminEmailAddress string `json:"adminEmailAddress" yaml:"adminEmailAddress"` ExpiresInYears int `json:"expiresInYears" yaml:"expiresInYears"` KeySize CertificateKeySize `json:"keySize" yaml:"keySize"` SignatureAlgorithm SignatureAlgorithm `json:"signatureAlgorithm" yaml:"signatureAlgorithm"` Password string `json:"password" yaml:"password"` }
type CertificateKeySize ¶
type CertificateKeySize int
const ( Key2048 CertificateKeySize = 2048 Key4096 CertificateKeySize = 4096 Key8192 CertificateKeySize = 8192 )
type IntermediateCertificate ¶
type IntermediateCertificate struct { Name string `json:"name" yaml:"name"` Config *CertificateConfig `json:"config" yaml:"config"` PemCertificate string `json:"PemCertificate" yaml:"PemCertificate"` PemPrivateKey string `json:"PemPrivateKey" yaml:"PemPrivateKey"` Certificates []*Certificate `json:"certificates" yaml:"certificates"` }
type RootCertificate ¶
type RootCertificate struct { Name string `json:"name" yaml:"name"` Config *CertificateConfig `json:"config" yaml:"config"` PemCertificate string `json:"PemCertificate" yaml:"PemCertificate"` PemPrivateKey string `json:"PemPrivateKey" yaml:"PemPrivateKey"` IntermediateCertificates []*IntermediateCertificate `json:"intermediateCertificates" yaml:"intermediateCertificates"` }
type SignatureAlgorithm ¶
type SignatureAlgorithm int
const ( SHA256 SignatureAlgorithm = 4 SHA384 SignatureAlgorithm = 5 SHA512 SignatureAlgorithm = 6 )
func (SignatureAlgorithm) ToX509SignatureAlgorithm ¶
func (s SignatureAlgorithm) ToX509SignatureAlgorithm() x509.SignatureAlgorithm
Click to show internal directories.
Click to hide internal directories.