Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

190
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda