Code Monkey home page Code Monkey logo

ec2pki's Introduction

EC2 PKI

AWS EC2 base PKI, designed for use with AWS Client VPN. This CloudFormation template (pki.yaml) will launch an instance, install easyrsa3, create a PKI, server, and client certificates based on the parameters specified. All certificates are uploaded to a private S3 bucket and ACM.

Getting Started

Prerequisites

You will need an AWS account with a VPC and a subnet with Internet access (via IGW or NAT-Gateway)

Launching The Template

To run the template:

  • Download or clone pki.yaml
  • Navigate to CloudFormation in your desired region
  • Launch a new stack using pki.yaml

Outputs

Following launch, you will have the following:

  • And EC2 instance (stopped) containing your PKI/CA
  • A server and client certificate uploaded to ACM in the same region
  • A private S3 bucket named "client-vpn-files-i-xxxxxxxxxx"

Next Steps

Using the certificates, you can now create a Client VPN endpoint with Mutual Authentication (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-endpoints.html#cvpn-working-endpoint-create)

(Optional) Manually create certificates for additional clients:

From the EC2 instance run the command "./easyrsa build-client-full username.domain.tld nopass". Note: The additional client certificates do not need to be uploaded to ACM, providing they are signed with the same CA as the initial client certificate"

ec2pki's People

Contributors

rycb4r avatar

Watchers

Fawzi H avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.