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(chain []*issuance.Certificate) []ct.ASN1Cert
GetCTBundleForChain takes a slice of *issuance.Certificate(s) representing a certificate chain and returns a slice of ct.ANS1Cert(s) in the same order
Impl defines a Publisher
type Impl struct { pubpb.UnimplementedPublisherServer // contains filtered or unexported fields }
func New( bundles map[issuance.IssuerNameID][]ct.ASN1Cert, userAgent string, logger blog.Logger, stats prometheus.Registerer, ) *Impl
New creates a Publisher that will submit certificates to requested CT logs
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
Log contains the CT client for a particular CT log
type Log struct {
// contains filtered or unexported fields
}
func NewLog(uri, b64PK, userAgent string, logger blog.Logger) (*Log, error)
NewLog returns an initialized Log struct