authorize: add signature algo support (RSA / EdDSA) (#1631)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
bobby 2020-11-30 17:14:41 -08:00 committed by GitHub
parent 652e8bb3d3
commit 5bbd745934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 376 additions and 269 deletions

View file

@ -15,3 +15,12 @@ openssl req \
-days 1000000 \
-out ec_public.pem \
-subj "/CN=unused"
# uncomment if you want RSA / RS256
# openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
# openssl req -x509 -nodes -newkey rsa:2048 -keyout rsa_private.pem -out rsa_cert.pem -subj "/CN=unused"
# uncomment if you want EdDSA / Ed25519
# openssl is /usr/local/opt/openssl/bin/openssl on mac with brew otherwise it is libressl
# openssl genpkey -algorithm ED25519 -out ed25519_private.pem
# openssl req -x509 -new -key ed25519_private.pem -days 1000000 -out ed25519_public.pem -subj "/CN=unused"