New-reg "Status 400: urn:acme:error:malformed"

From: elahdbarshai@xxxxxxxxx
To: Let's Encrypt Client Development <client-dev@xxxxxxxxxxxxxxx>
Date: Thu, 28 Jul 2016 11:46:32 -0700 (PDT)
Why ads?
Hey all,

I'm looking for help figuring out why my new-reg request is being rejected. Relevant data is below.

ACME RESPONSE:
{
  "type": "urn:acme:error:malformed",
  "detail": "JWS verification error",
  "status": 400
}

NEW-REG REQUEST:
{  
   "header":{  
      "alg":"RS256",
      "jwk":{  
         "e":"AQAB",
         "kty":"RSA",
         "n":"1_qf-pFFFTDClZJPa7X-51ZSyAgfWYWOY9Rwmtgm0zXI_706_bjDSOvuc73r-ni0GgB18e9BjogIktKOKAt9SX_TqVxmHLNO3HBMmX_ctxCBegmoW01Aojxyh3PS0Q0aK_C-J_BadgtA_TSR5d47kFPdK5xGfzd4ZKMKOFN2uyEnPF2kDnnbe33ada6_-YJTMgNXRR64611sWF1NQ3ue-Y9qGIk9zX9YDlaa4s2BeYnGQdPDd0VdJrdZMICuq9TXNrRKUgM9HcRQdrQmjge1ukNOd0SuQDHdtKQtRPeOE5KlC5XpaRioFHks2tWqJPQGJ4FQflP0l69HUEdCa1dE4cbhtiVaibtiQu7kE3el0WiK4d4QmFF7egD5arSwfEjG_659ihQeuzpweataOZq_Q-JW-goCrLNHkuhLZcGdLUzDyF9k88xHioO5dMFMhVO16E6xwtic-0Kj79ILrmgnHxVoViX3R7XYByWuMI6x3rV6CvJskSZWo6YfGNK35hkyhTWxM159koeFhb9kuB0j1jAWX1_lBEcRmePeLjGQVXD6elNf0XJVrVl6xvHjc6g4ibhL-sWwSm3VwrNGUsvaMrYaa-0tkJ4yCGBkzmjCa_yaTVKKV0PunPS5IpEM_uJepcfqi3Xz46jAyU3manJ6_Ben2J0UHjbckMqgjGLR888"
      }
   },
   "protected":"eyJub25jZSI6ICJEbDJmaElkZDlVeDlLN1V6NlVhYThYX1cwaXh2VmNtSU1icFFuSVhrNU1VIiwgImFsZyI6ICJSUzI1Ni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4pHzPNkX8jDTC2dwWVL6JJHs6wCCvpW
4kO/mjlaq3lwOrseFIp9rv/GSHywtGr5AHp7UZgQ3uGKaNGldxPk7kJiu4laJbbh
xuFEV2tCR1BHr5f0U35QgScG9CSq1doseRSoGGnplQulkhOO90QtpLTdMUCuRHdO
Q7q1B44mtHZQxB09A1JKtDbX1KuugDBZtyZdRXfD00HGiXmBzeKaVg5Yf809iRhq
j/mee0NNXVhsXeu4HkVXAzJTgvm/rnXafXvbeQ6kXTwnIbt2UzgKo2R4N39GnCvd
U5A73uWRNP1AC3Za8Ce+8CsaDdHSc4dyPKJATVuoCXqBELfcf5lMcNxOsxxmXKnT
f0l9CyiO0pIIiI5B7/F1ABq0ePrrvXPu60jDuP06vf/INdMm2Jpw1GOOhVkfCMhS
Vuf+tWtPkpXCMBVFkfqf+tcCAwEAAQ==
-----END PUBLIC KEY-----

Any ideas? The signature validates in Python (by the same library I'm using the generate the signature), but OpenSSL won't validate on the command line. Not sure this is the issue, but it's the only abnormality I've found.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Let's Encrypt Client Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to client-dev+unsubscribe@xxxxxxxxxxxxxxx.
To post to this group, send email to client-dev@xxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/a/letsencrypt.org/d/msgid/client-dev/b3556e0d-9886-46a2-85da-d2f005642e07%40letsencrypt.org.
Why ads?