Documentation

Overview

    Package dynamiccertauthority implements a x509 certificate authority capable of issuing certificates from a dynamically updating CA keypair.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type CA

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

      CA is a type capable of issuing certificates.

      func New

      func New(provider dynamiccert.Provider) *CA

        New creates a new CA, ready to issue certs whenever the provided provider has a keypair to provide.

        func (*CA) IssuePEM

        func (c *CA) IssuePEM(subject pkix.Name, dnsNames []string, ttl time.Duration) ([]byte, []byte, error)

          IssuePEM issues a new server certificate for the given identity and duration, returning it as a pair of PEM-formatted byte slices for the certificate and private key.