Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestingSignedSCT ¶
func CreateTestingSignedSCT(req []string, k *ecdsa.PrivateKey, precert bool, timestamp time.Time) []byte
CreateTestingSignedSCT is used by both the publisher tests and ct-test-serv, which is why it is exported. It creates a signed SCT based on the provided chain.
func GetCTBundleForChain ¶
func GetCTBundleForChain(chain []*issuance.Certificate) []ct.ASN1Cert
GetCTBundleForChain takes a slice of *issuance.Certificate(s) representing a certificate chain and returns a slice of ct.ASN1Cert(s) in the same order
Types ¶
type Impl ¶
type Impl struct { pubpb.UnsafePublisherServer // contains filtered or unexported fields }
Impl defines a Publisher
func New ¶
func New( bundles map[issuance.NameID][]ct.ASN1Cert, userAgent string, logger blog.Logger, stats prometheus.Registerer, ) *Impl
New creates a Publisher that will submit certificates to requested CT logs
func (*Impl) SubmitToSingleCTWithResult ¶
func (pub *Impl) SubmitToSingleCTWithResult(ctx context.Context, req *pubpb.Request) (*pubpb.Result, error)
SubmitToSingleCTWithResult will submit the certificate represented by certDER to the CT log specified by log URL and public key (base64) and return the SCT to the caller.
Click to show internal directories.
Click to hide internal directories.