Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
JWT.io Signature Validation

I'm creating a JWT within Mirth and sending the constructed message out to an oauth2 server but it keeps erroring. When I put the JWT into jwt.io I get valid header and payload information but my signature is coming back as invalid and I can't figure out why.

I created the signature with openssl using the following:

openssl req -new -x509 -key /path_to_key/privatekey.pem -out /path_to_key/publickey509.pem

In Mirth, I encode the privatekey.pem file

encoded = Packages.org.apache.commons.codec.binary.Base64.decodeBase64('privatekey.pem contents minus header');
keySpec = new Packages.java.security.spec.PKCS8EncodedKeySpec(encoded);
privateKey = keyFac.generatePrivate(keySpec);

When I check the contents sent out and paste the encoded JWT into jwt.io I get invalid signature. I'm not sure where or what I'm doing wrong.

JWT.io signature error:

Public Key in SPKI, PKCS #1, X.509 Certificate, or JWK string format.

Private Key in PKCS #8, PKCS #1, or JWK string format.  The key never leaves your browser.
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!