/go-key-rotator-cli

A handy command line utility for seamlessly rotating public/private RSA keys using AWS Parameter Store

Primary LanguageGoMIT LicenseMIT

RSA Key Rotator CLI 🔄

❯ ./go-rotate store --name kittens
┏┓┏┓  ┏┓┏┓╋┏┓╋┏┓
┗┫┗┛  ┛ ┗┛┗┗┻┗┗
 ┛

Rotating new keys...

🔐 Generated and stored keys:

   💾 Public Key: kittens_pub.pem
   💾 Private Key: kittens_priv.pem

Golang License

Build Lint Test Go Report Card

Overview

RSA Key Rotator CLI is a command-line tool designed to facilitate the secure rotation of RSA keys backed by AWS Parameter store 🔑.

Utilizing the powerful go-key-rotator library, this tool offers a user-friendly approach to manage RSA keys. Ideal as a standalone tool or as a companion to the go-key-rotator library, go-rotate streamlines the process of rotating RSA keys and integrates seamlessly with AWS Parameter Store for safe storage and retrieval 🛡️.

Features

  • Generate and rotate RSA keys with customizable options 🔧.
  • Integration with AWS Parameter Store for secure key management 🔐.
  • User-friendly command-line interface 💻.
  • Suitable for standalone use or in conjunction with the go-key-rotator
  • library 🤝.

Installation

Install RSA Key Rotator CLI using the following Go command:

go install github.com/kmesiab/go-key-rotator-cli
alias go-rotate=go-key-rotator-cli

Usage

Once installed, you can use the go-rotate command to manage your RSA keys. Common commands include:

🔐 Generate and Store a key in AWS Parameter Store

go-rotate store --name my_new_key

🔑 Generate and Save a new RSA key pair to a file

go-rotate generate --name kittens --size 2048

📆 Get a previously generated RSA key

go-rotate fetch --name taco_truck

Command Line Flags

❯ ./go-rotate --help

┏┓┏┓  ┏┓┏┓╋┏┓╋┏┓
┗┫┗┛  ┛ ┗┛┗┗┻┗┗
 ┛


go-rotate is a tool for generating, storing, and retrieving
public/private RSA key pairs using AWS Parameter store.

Usage:
  go-rotate [flags]
  go-rotate [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  fetch       Downloads your public/private key pair
  generate    Generates a new public/private key pair, but does not store it
  help        Help about any command
  store       Generates and stores a public/private key pair

Flags:
  -h, --help   help for go-rotate

Use "go-rotate [command] --help" for more information about a command.

Contributing

Contributions to RSA Key Rotator CLI are welcome! Please read our contributing guidelines to get started 🤗.

License

RSA Key Rotator CLI is open-source software licensed under the MIT license 📜.