Documentation ¶
Overview ¶
Package client is a CT log client implementation and contains types and code for interacting with RFC6962-compliant CT Log instances. See http://tools.ietf.org/html/rfc6962 for details
Index ¶
- Constants
- type LogClient
- func (c *LogClient) AddChain(chain []ct.ASN1Cert) (*ct.SignedCertificateTimestamp, error)
- func (c *LogClient) AddPreChain(chain []ct.ASN1Cert) (*ct.SignedCertificateTimestamp, error)
- func (c *LogClient) GetEntries(start, end int64) ([]ct.LogEntry, error)
- func (c *LogClient) GetSTH() (sth *ct.SignedTreeHead, err error)
Constants ¶
const ( AddChainPath = "/ct/v1/add-chain" AddPreChainPath = "/ct/v1/add-pre-chain" GetSTHPath = "/ct/v1/get-sth" GetEntriesPath = "/ct/v1/get-entries" )
URI paths for CT Log endpoints
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogClient ¶
type LogClient struct {
// contains filtered or unexported fields
}
LogClient represents a client for a given CT Log instance
func New ¶
New constructs a new LogClient instance. |uri| is the base URI of the CT log instance to interact with, e.g. http://ct.googleapis.com/pilot
func (*LogClient) AddPreChain ¶
AddPreChain adds the (DER represented) Precertificate |chain| to the log.
func (*LogClient) GetEntries ¶
GetEntries attempts to retrieve the entries in the sequence [|start|, |end|] from the CT log server. (see section 4.6.) Returns a slice of LeafInputs or a non-nil error.