Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello mentors,

Need some urgent help. I am quite new to Securities in Webservices.
I got a requirement to add message signing while interacting with a 3rd party web service.
Want to add SOAP header with few attributes.

I am using x509 certificate handshaking till now. The requirement says that the certificate should be encoded to base64Binary also.

What i am doing till now-

X509Certificate2Collection col = (X509Certificate2Collection)store.Certificates.Find(X509FindType.FindBySerialNumber, ConfigurationManager.AppSettings["SSLCertificateSerialNumber"], true);

and simply using the first certificate in certificate store .



Any pointers for a beginner?
Posted

1 solution

Maybe the following link could be helpful:
Exporting a Certificate as BASE-64 encoded .cer[^]
 
Share this answer
 
Comments
gouravkaila 12-Sep-13 5:21am    
Thanks alot. Any suggestion for adding SOAP header?
phil.o 12-Sep-13 5:43am    
Nope, sorry :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900