s3

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package s3 solves the ACMEv2 HTTP-01 challenge. The workflow is as follows:

1. client requests a certificate from the remote CA, using the Solver as the HTTP-01 challenge 2. Solver populates the Challenge in S3 and notifies the CA that the challenge is ready 3. remote CA requests the keyauth from the well known path in S3 4. s3 presents the keyauth to the remote CA

In order for s3 to route to your bucket using http, the bucket name will need to match the domain name for which you are creating a certificate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solver

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

Solver implements lego's challenge.Provider

func New

func New(client s3iface.S3API) *Solver

New returns a pointer to a Solver, initialised with an ACM client and a target certificateARN to update

func (*Solver) CleanUp

func (s *Solver) CleanUp(domain, token, keyAuth string) error

CleanUp removes the challenge information from S3

func (*Solver) Present

func (s *Solver) Present(domain, token, keyAuth string) error

Present writes the challenge information into S3 so that we can respond to HTTP queries with the correct value

Jump to

Keyboard shortcuts

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