Link to home
Start Free TrialLog in
Avatar of HItesh Rana
HItesh Rana

asked on

Decrypt SOAP Message (with x509 certificate)

I have a soap message that is signed with a x509 Certificate. How do I manually decrypt it. I would think this would be easy but I can't seem to figure it out.

I tried this example but it did not work for me.
https://stackoverflow.com/questions/20743256/how-to-decrypt-raw-soap-response-encrypted-with-x509
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

signing != Encryption

do you mean it is encrypted using x509 certificate

So it is encrypted with your public key and their private key so you decrypt using your private key
Avatar of HItesh Rana
HItesh Rana

ASKER

I'm sorry.  Yes.  I meant encrypted using a x509 certificate.  Not sure exactly how to decrypt something with a x509 certificate.   I'm currently having this issue right now

https://www.experts-exchange.com/questions/29092263/WCF-The-incoming-message-was-signed-with-a-token-which-was-different-from-what-used-to-encrypt-the-body-This-was-not-expected.html.  

I thought if I can do it manually in my custom encoder in the ReadMessage component rather than spend time why my SOAP message is not being decrypted by WCF.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.