Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthority ¶
type CertificateAuthority interface { CreateCertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*CodeSigningCertificate, error) Root(ctx context.Context) ([]byte, error) }
CertificateAuthority only returns the SCT in detached format
type CodeSigningCertificate ¶
type CodeSigningCertificate struct { Subject *challenges.ChallengeResult FinalCertificate *x509.Certificate FinalChain []*x509.Certificate // contains filtered or unexported fields }
func CreateCSCFromDER ¶
func CreateCSCFromDER(subject *challenges.ChallengeResult, cert []byte, chain []*x509.Certificate) (c *CodeSigningCertificate, err error)
func CreateCSCFromPEM ¶
func CreateCSCFromPEM(subject *challenges.ChallengeResult, cert string, chain []string) (*CodeSigningCertificate, error)
func (*CodeSigningCertificate) CertPEM ¶
func (c *CodeSigningCertificate) CertPEM() ([]byte, error)
func (*CodeSigningCertificate) ChainPEM ¶
func (c *CodeSigningCertificate) ChainPEM() ([]byte, error)
type CodeSigningPreCertificate ¶
type CodeSigningPreCertificate struct { Subject *challenges.ChallengeResult PreCert *x509.Certificate }
type EmbeddedSCTCA ¶
type EmbeddedSCTCA interface { CreatePrecertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*CodeSigningPreCertificate, error) IssueFinalCertificate(ctx context.Context, precert *CodeSigningPreCertificate) (*CodeSigningCertificate, error) }
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.