publisher

package
v0.0.0-...-0cb28c9 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MPL-2.0 Imports: 25 Imported by: 0

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.

Types

type Impl

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

Impl defines a Publisher

func New

func New(
	bundle []ct.ASN1Cert,
	logger blog.Logger,
	stats metrics.Scope,
) *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 and signature verifier for a particular CT log

func NewLog

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

NewLog returns an initialized Log struct

Directories

Path Synopsis
Package mock_publisher is a generated GoMock package.
Package mock_publisher is a generated GoMock package.
Package publisher is a generated protocol buffer package.
Package publisher is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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