aws

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 {
	// Client is a pre-created ACMPCA client. It can be created
	// via, for example:
	//    conf, err := external.LoadDefaultAWSConfig()
	//    if err != nil {
	//        return nil, err
	//    }
	//    conf.Region = endpoints.EuWest2RegionID
	//    conf.Credentials = aws.NewStaticCredentialsProvider("YOURKEY", "YOURKEYSECRET", "")
	//    cli := acmpca.New(conf)
	Client iface.ACMPCAAPI
	// CertificateAuthorityARN specifies the ARN of a pre-created CA
	// which will be used to issue the certificates.
	CertificateAuthorityARN string

	// TimeToLive configures the lifetime of certificates
	// requested from the AWS CA, in number of days.
	// If unset, defaults to 30 days.
	TimeToLive int
	// contains filtered or unexported fields
}

Issuer implements the Issuer interface with a AWS Certificate Manager Private Certificate Authority backend.

Client and CertificateAuthorityARN are required.

func (Issuer) Issue

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

Issue issues a certificate from the configured AWS CA backend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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