cfssl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issuer

type Issuer struct {
	// URL specifies the URL to the CFSSL server.
	URL *url.URL
	// TLSConfig allows configuration of the TLS config
	// used when connecting to the CFSSL server.
	TLSConfig *tls.Config
	// Profile is the profile on the CFSSL server
	// that should be used. If unset, the default
	// profile will be used.
	Profile string
	// Auth optionally configures the authentication
	// that should be used.
	Auth auth.Provider
	// contains filtered or unexported fields
}

Issuer implements the Issuer interface with a Cloudflare CFSSL CA server backend.

URL is required.

func FromClient added in v0.3.0

func FromClient(v client.Remote) (*Issuer, error)

FromClient returns an Issuer using the provided CFSSL API client. Any changes to the issuers properties must be done before using it.

func (*Issuer) Connect

func (i *Issuer) Connect(ctx context.Context) error

Connect creates a new connection to the CFSSL server and sends a request to validate server availability. If not called, a connection will be made in the first Issue call.

func (*Issuer) Issue

func (i *Issuer) Issue(ctx context.Context, commonName string, conf *certify.CertConfig) (*tls.Certificate, error)

Issue issues a certificate with the provided options

Jump to

Keyboard shortcuts

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