Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthority ¶
type CertificateAuthority interface { CreateCertificate(context.Context, identity.Principal, crypto.PublicKey) (*CodeSigningCertificate, error) Root(ctx context.Context) ([]byte, error) }
CertificateAuthority implements certificate creation with a detached SCT and fetching the CA trust bundle.
type CodeSigningCertificate ¶
type CodeSigningCertificate struct { FinalCertificate *x509.Certificate FinalChain []*x509.Certificate // contains filtered or unexported fields }
func CreateCSCFromDER ¶
func CreateCSCFromDER(cert []byte, chain []*x509.Certificate) (*CodeSigningCertificate, error)
func CreateCSCFromPEM ¶
func CreateCSCFromPEM(cert string, chain []string) (*CodeSigningCertificate, error)
func (*CodeSigningCertificate) CertPEM ¶
func (c *CodeSigningCertificate) CertPEM() (string, error)
func (*CodeSigningCertificate) ChainPEM ¶
func (c *CodeSigningCertificate) ChainPEM() ([]string, error)
type CodeSigningPreCertificate ¶
type CodeSigningPreCertificate struct { // PreCert contains the precertificate. Not a valid certificate due to a critical poison extension. PreCert *x509.Certificate // CertChain contains the certificate chain to verify the precertificate. CertChain []*x509.Certificate // PrivateKey contains the signing key used to sign the precertificate. Will be used to sign the certificate. // Included in case the signing key is rotated in between precertificate generation and final issuance. PrivateKey crypto.Signer }
CodeSigningPreCertificate holds a precertificate and chain.
type EmbeddedSCTCA ¶
type EmbeddedSCTCA interface { CreatePrecertificate(context.Context, identity.Principal, crypto.PublicKey) (*CodeSigningPreCertificate, error) IssueFinalCertificate(ctx context.Context, precert *CodeSigningPreCertificate, sct *ct.SignedCertificateTimestamp) (*CodeSigningCertificate, error) }
EmbeddedSCTCA implements precertificate and certificate issuance. Certificates will contain an embedded SCT.
type ValidationError ¶
type ValidationError error
ValidationError indicates that there is an issue with the content in the HTTP Request that should result in an HTTP 400 Bad Request error being returned to the client
Click to show internal directories.
Click to hide internal directories.