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](https://i.stack.imgur.com/EmaDR.png)](https://i.stack.imgur.com/EmaDR.png)