Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • There is no public or private key, when you work with JWT. There is just a secrect. jwt.io
    – apxp
    Commented Aug 14, 2018 at 5:51
  • 3
    No. You could use RSA algorithm to sign, it needs a pair of private key and public key to sign and verify. Commented Aug 14, 2018 at 8:16
  • I have proof of concept to use jwt-go to sign a token using private key and public key for verification. it might help, you can check it here github.com/Keda87/golang-echo-jwt-rsa Commented Mar 22, 2022 at 4:26