Documentation ¶
Index ¶
- Variables
- func VerifyCertChain(certs []*x509.Certificate, signer crypto.Signer) error
- type IntermediateCA
- func (ica *IntermediateCA) CreateCertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*ca.CodeSigningCertificate, error)
- func (ica *IntermediateCA) CreatePrecertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*ca.CodeSigningPreCertificate, error)
- func (ica *IntermediateCA) IssueFinalCertificate(ctx context.Context, precert *ca.CodeSigningPreCertificate, ...) (*ca.CodeSigningCertificate, error)
- func (ica *IntermediateCA) Root(ctx context.Context) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OIDExtensionCTPoison is defined in RFC 6962 s3.1. OIDExtensionCTPoison = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 3} // OIDExtensionCTSCT is defined in RFC 6962 s3.3. OIDExtensionCTSCT = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 2} )
Functions ¶
func VerifyCertChain ¶
func VerifyCertChain(certs []*x509.Certificate, signer crypto.Signer) error
Types ¶
type IntermediateCA ¶
type IntermediateCA struct { sync.RWMutex // certs is a chain of certificates from intermediate to root Certs []*x509.Certificate Signer crypto.Signer }
func (*IntermediateCA) CreateCertificate ¶
func (ica *IntermediateCA) CreateCertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*ca.CodeSigningCertificate, error)
func (*IntermediateCA) CreatePrecertificate ¶
func (ica *IntermediateCA) CreatePrecertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*ca.CodeSigningPreCertificate, error)
func (*IntermediateCA) IssueFinalCertificate ¶
func (ica *IntermediateCA) IssueFinalCertificate(ctx context.Context, precert *ca.CodeSigningPreCertificate, sct *ct.SignedCertificateTimestamp) (*ca.CodeSigningCertificate, error)
Click to show internal directories.
Click to hide internal directories.