How to resolve moodle Failure Signing Data: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt - SHA256?

Viewed 2357

I am developing a Moodle website using SSO. I have configured auth_saml2 moodle plugin and I have tested with test login. I am getting error

Exception: Failure Signing Data: error: 06065064: digital envelope routines: EVP_DecryptFinal_ex: bad decrypt - SHA256

I have tried SHA384, SHA512 algorith but still am getting same error.

Error screenshot.

enter image description here

2 Answers

The certificate needs to be regenerated, from the saml settings click the 'Regenerate certificate' button, or go here:

http://moodle.example/auth/saml2/regenerate.php

and resave the certificate. You will need to re-import the SP metadata again with your IdP.

Related