autocert-s3-cache icon indicating copy to clipboard operation
autocert-s3-cache copied to clipboard

AWS S3 Cache for Go acme/autocert

GoDoc Build Status Coverage Status Go Report Card

autocert-s3-cache

AWS S3 cache for acme/autocert written in Go.

Example

cache, err := s3cache.New("eu-west-1", "my-bucket")
if err != nil {
  // Handle error
}

m := autocert.Manager{
  Prompt:     autocert.AcceptTOS,
  HostPolicy: autocert.HostWhitelist("example.org"),
  Cache:      cache,
}

s := &http.Server{
  Addr:      ":https",
  TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
}

s.ListenAndServeTLS("", "")