README

cert2amqp

TODO…

Windows Codesigning on Linux

More todo.

osslsigncode sign -certs signcode.cert -key signcode.key.pvk -readpass signcode.pass -h sha256 -n 'Publish certificates to RabbitMQ' -i https://git.scc.kit.edu/heiko.reese/cert2amqp -t http://timestamp.globalsign.com/scripts/timestamp.dll -in ../../daemon/cert2amqp.exe -out ../../daemon/cert2amqp_signed.exe
Expand ▾ Collapse ▴

Documentation

Index

Constants

View Source
const (
	CONFIRMATIONCHANLEN = 32768
)

Variables

This section is empty.

Functions

func NewAMQPConn

func NewAMQPConn(uri, exchange, queue string, errorChan chan error, certChan chan *Certificate, deleteChan chan string)

    start connection and publish certificates

    func ProcessCertificates

    func ProcessCertificates(infiles chan string, ch chan *Certificate)

    func ReadCertificates

    func ReadCertificates(filenames ...string) []*x509.Certificate

      ReadCertificates reads alls x509 certificates from a list of input files. Errors are logged and skipped.

      func StartErrorHandler

      func StartErrorHandler(errorChan chan error)

        handle errors (exit on fatal error, log otherwise)

        func WatchCertDir

        func WatchCertDir(path string, errchan chan error, ch chan string) error

          WatchCertDir watches path for new certificate files

          Types

          type AMQPConn

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

          type Certificate

          type Certificate struct {
          	CommonName string
          	PEM        []byte
          	Serial     string
          	SHA256     string
          	Filename   string
          	NotBefore  string
          	NotAfter   string
          }

          type CertificateExport

          type CertificateExport struct {
          	PEM        string `json:"pem"`
          	Serial     string `json:"serial"`
          	CommonName string `json:"cn"`
          }

          type FatalError

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

          func NewFatalError

          func NewFatalError(err error, description string) FatalError

          func NewFatalErrorf

          func NewFatalErrorf(err error, format string, a ...interface{}) FatalError

          func (FatalError) Error

          func (e FatalError) Error() string

          type NonFatalError

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

          func NewNonFatalError

          func NewNonFatalError(err error, description string) NonFatalError

          func NewNonFatalErrorf

          func NewNonFatalErrorf(err error, format string, a ...interface{}) NonFatalError

          func (NonFatalError) Error

          func (e NonFatalError) Error() string

          Directories

          Path Synopsis
          cmd