Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

mytheresa/certify-aws-issuer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Certify AWS updated Issuer

Intended to use with newest version of github.com/aws/aws-sdk-go-v2 which is not supported by aws implementation in github.com/johanbrandhorst/certify.

How to use it

Example using config

import aws "github.com/mytheresa/certify-aws-issuer/pkg/tls"

func serverTLS(config aws.AWSConfig) (grpc.ServerOption, error) {
  ai, err := aws.NewAWSIssuerFromConfig(config)
  if err != nil {
    return grpc.EmptyServerOption{}, err
  }

  tlsConfig, err := aws.NewAWSTLSConfig(ai)
  if err != nil {
    return grpc.EmptyServerOption{}, err
  }
  
  return grpc.Creds(credentials.NewTLS(tlsConfig)), nil
}

aws.AWSConfig can be added to config struct (it have yaml and env annotations)

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%