-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting null when I try to decrypt ticket #2
Comments
@setvik, I think most people will be able to leave the If that's not working for you (and it likely won't if you already tested with |
Thanks for the reply. Unfortunately, still unable to get it to work. It's currently failing in the validate() function.
returns false.
Any thoughts on what the issue might be? |
@setvik, all I can tell from what you've told me is that it is failing the checksum validation. Short of confirming your validation key I'm not sure there is much else that I can do. It is also possible that the algorithm is incorrect, but right now I've only added support for SHA1 so, if that is the case, we would need to add support for whichever method you are using. There is a possibility that there is some change to forms validation in 4.5 that I'm not aware of (I'm testing with 4.0.3). I'm sorry I'm not able to help more. |
@setvik Have you solved your issue? I'm experiencing the same with |
We have a |
Also running into this issue. I have |
anyone able to get the decrypt part work? I am using .net 4.5, and removed all the validation, and just decryption, and I am getting Error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length |
This happens due to different .NET 4.5 mode ticket. I've created a pull request to handle decryption of those auth tickets. |
I created a quick test.js file with the following contents & included the validation key and decryption key specified in the entry in my Web.config file.
I'm unsure of what to put for the DOTNET_DECRYPTION_IV. I've tried null as well as the 1st 128 characters in the encrypted cookie. Both values result in authTicket getting set to null.
Any thoughts on what I'm missing?
The text was updated successfully, but these errors were encountered: