https://github.com/yasushi-saito/jwtpublickeytest
Example of using JWT signed by ECDSA
https://github.com/yasushi-saito/jwtpublickeytest
ecdsa golang jwt python terraform
Last synced: 2 months ago
JSON representation
Example of using JWT signed by ECDSA
- Host: GitHub
- URL: https://github.com/yasushi-saito/jwtpublickeytest
- Owner: yasushi-saito
- License: apache-2.0
- Created: 2020-08-27T04:36:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T16:25:37.000Z (about 4 years ago)
- Last Synced: 2024-11-19T09:45:04.333Z (over 1 year ago)
- Topics: ecdsa, golang, jwt, python, terraform
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jwtpublickeytest
Example of signing and verifying JWT with EC384 private/public key pairs.
The key generator is written in both Go and Terraform.
The signer is in Go. The verifier is in Go and Python.
Run:
# Generate a new public/private keys under keys/*.pem
# Sign a small key and verify it.
go run . -generate-random-keys
python3 -m pip install -r requirements.txt
# Decode the data generated by the previous run of main.go
python3 ./jwttest.py
# A similar test, but generate public/private keys using terraform and
# ./main.tf
go run . -terraform
# Decode the data generated by the previous run of main.go
python3 ./jwttest.py