publisher

package
v0.0.0-...-c2307ae Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTConfig

type CTConfig struct {
	Logs                       []LogDescription `json:"logs"`
	SubmissionRetries          int              `json:"submissionRetries"`
	SubmissionBackoffString    string           `json:"submissionBackoff"`
	IntermediateBundleFilename string           `json:"intermediateBundleFilename"`
}

CTConfig defines the JSON configuration file schema

type LogDescription

type LogDescription struct {
	ID        string
	URI       string
	PublicKey *ecdsa.PublicKey
}

LogDescription tells you how to connect to a log and verify its statements.

func (*LogDescription) UnmarshalJSON

func (logDesc *LogDescription) UnmarshalJSON(data []byte) error

UnmarshalJSON parses a simple JSON format for log descriptions. Both the URI and the public key are expected to be strings. The public key is a base64-encoded PKIX public key structure.

type PublisherImpl

type PublisherImpl struct {
	SA core.StorageAuthority
	// contains filtered or unexported fields
}

PublisherImpl defines a Publisher

func NewPublisherImpl

func NewPublisherImpl(ctConfig CTConfig) (pub PublisherImpl, err error)

NewPublisherImpl creates a Publisher that will submit certificates to any CT logs configured in CTConfig

func (*PublisherImpl) SubmitToCT

func (pub *PublisherImpl) SubmitToCT(der []byte) error

SubmitToCT will submit the certificate represented by certDER to any CT logs configured in pub.CT.Logs

Jump to

Keyboard shortcuts

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