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

Certify updated AWS issuer

License

Notifications You must be signed in to change notification settings

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)

About

Certify updated AWS issuer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages