publisher

package
v0.0.0-...-5b94510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 27 Imported by: 67

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.

type Log

type Log struct {
	// contains filtered or unexported fields
}

Log contains the CT client for a particular CT log

func NewLog

func NewLog(uri, b64PK, userAgent string, logger blog.Logger) (*Log, error)

NewLog returns an initialized Log struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL