#1408 register_web --- Unable to decode response from recaptcha: [0] certificate-chain-invalid

Reporter Lunar
Owner Zash
Stars ★ (1)
  • Milestone-0.12
  • Status-Fixed
  • Priority-Medium
  • Type-Defect
  1. Lunar on

    When attempting to register via register_web it throws the log I've pasted below and returns "Captcha API error" on the iframe. Unsure what could have caused this, all that changed was an upgrade from Debian 9, to 10. The configuration and API keys remain the same. Example registration page: https://xmpp.is/account/register/xmpp_co/ Example log: Aug 14 02:21:25 xmpp.co:register_web warn Unable to decode response from recaptcha: [0] certificate-chain-invalid

  2. Zash on

    Thanks for the report. This happens because Google requires SNI in the HTTPS requests, which the HTTP client library included in Prosody does not support.

    • tags Status-Accepted
  3. Lunar on

    Hi Zash, Thanks for the details. Must have been a recent change on Google's end then? I thought it was something that changed Lua-wise when upgrading to Debian 10. Coincidence that it broke then. Is the issue being worked on? I could start a bug bounty.

  4. Zash on

    Fixed in https://hg.prosody.im/trunk/rev/6c804b6b2ca2

    • tags Status-Fixed
  5. Zash on

    • tags Milestone-0.12
  6. Zash on

    • owner Zash

New comment

Not published. Used for spam prevention and optional update notifications.