ctmapper

package
v0.0.0-...-f1c747c Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

Example CT Mapper

This is an example of a process which maps from a verifiable Log to a verifiable Map. It scans an RFC6962 CT Log server for certificate and precertificates, and adds entries to a Verifiable Map whose keys are SHA256(domainName), and whose values are a protobuf of indicies in the log where precerts/certs exist which have that domain in their subject/SAN fields.

Running the example

# Ensure you have your MySQL DB set up correctly, with tables created by the
# contents of storage/mysql/storage.sql
yes | scripts/resetdb.sh

go build ./server/trillian_map_server
go build ./examples/ct/ctmapper/mapper
go build ./examples/ct/ctmapper/lookup

# in one terminal:
./trillian_map_server --logtostderr

# in another (leaving the trillian_map_server running):
go build ./cmd/createtree/
tree_id=$(./createtree \
    --admin_server=localhost:8090 \
    --pem_key_path=testdata/log-rpc-server.privkey.pem \
    --pem_key_password=towel \
    --signature_algorithm=ECDSA)
./mapper \
    -source http://ct.googleapis.com/pilot \
    -map_id=${tree_id} \
    -map_server=localhost:8091 \
    --logtostderr

You should then be able to look up domains in the map like so:

./lookup \
    -map_id=1 \
    -map_server=localhost:8091 \
    --logtostderr \
    mail.google.com www.langeoog.de  # etc. etc.

Documentation

Overview

Package ctmapper maps from a verifiable log to verifiable map.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashDomain

func HashDomain(key string) []byte

HashDomain converts a domain into a map index.

Types

This section is empty.

Directories

Path Synopsis
Package ctmapperpb is a generated protocol buffer package.
Package ctmapperpb is a generated protocol buffer package.
The lookup binary looks up a specific ID in a map.
The lookup binary looks up a specific ID in a map.
The mapper binary performs log->map mapping.
The mapper binary performs log->map mapping.

Jump to

Keyboard shortcuts

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