GithubHelp home page GithubHelp logo

rakutentech / jwkgen Goto Github PK

View Code? Open in Web Editor NEW
25.0 11.0 3.0 24 KB

Small command-line tool that generates asymmetric JSON Web Keys for the following algorithms and curves

License: MIT License

Go 100.00%
jwk jwks ed25519 curve25519 pem

jwkgen's Introduction

jwkgen - JSON Web Key Generator Go Report Card

Overview

jwkgen is a small command-line tool that generates asymmetric JSON Web Keys for the following algorithms and curves:

  • RSA
  • Curve25519 (ECDH, RFC 8037 compliant)
  • Ed25519 (EdDSA, RFC 8037 compliant)
  • P-256 (ECDSA and ECDH)
  • P-384 (ECDSA and ECDH)
  • P-521 (ECDSA and ECDH)

Installation

On Mac, you can easily install jwkgen using Homebrew:

> brew tap rakutentech/tap
> brew install jwkgen

On Windows, you can use scoop

> scoop bucket add rakutentech https://github.com/rakutentech/scoop-bucket.git
scoop install jwkgen

On other platforms, you can just download the latest release archive for your platform and extract the binary to any location.

If you have Go installed, you can also install the latest version from master branch:

> go get -u github.com/rakutentech/jwkgen

Usage

jwkgen [options] [filename]

Positional arguments

  • key type: (optional) Key type to generate: oct, rsa, ec (default=ec)
  • filename: Output filename (without extension)

Options

-h, --help

Show context-sensitive help (also try --help-long and --help-man).

--allow-unsafe

Allow unsafe parameters

--color

Use color in JSON output (true by default)

-e, --curve="Ed25519"

Named elliptic curve to use to generate a key. Valid values are P256, P384, P521, X25519, Ed25519

-b, --bits=2048

Number of bits to use when generating RSA or octet keys

--pem

Output only PEM format (useful for pipelining results and shell scripting)

--jwk

Output only JWK format (useful for pipelining results and shell scripting)

--version

Show jwkgen version.

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.