Skip to content

ossan-dev/jwt-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-demo

A simple demo about JWT token with Go.

go jws - PEM

  • openssl req -newkey rsa:4096 -x509 -sha512 -days 365 -nodes -out certificate.pem -keyout privatekey.pem => this generates the certificate together with the private key
  • openssl x509 -noout -in certificate.pem -text => used to see in a text-form the content of the certificate
  • openssl x509 -pubkey -noout -in certificate.pem -out publicKey.pem => to extract the public key from the certificate

resources:

go jws - RS 256 private key and public pair

  • openssl genrsa -out certs/id_rsa 4096 => this generate a private key
  • openssl rsa -in certs/id_rsa -pubout -out certs/id_rsa.pub => generate public key based on the private key

About

A simple demo about JWT token with Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages