Currently, I have source code that is calling external web services that is using SHA-1 cryptography and i'm currently calling these external WS by the following
using System.Security.Cryptography.X509Certificates;
X509Certificate2 x509Certificate2 = new X509Certificate2("client.p12", "password");
and each time calling the WS I have to pass the variable as per below:
WebserviceName.Timeout = 20000000;
WebserviceName.PreAuthenticate = true;
WebserviceName.ClientCertificates.Add(x509Certificate2);
Now, I was wondering if .NET framework 4.0 supports SHA-2.
Please advise if X509Certificate2 could be used for SHA-2 and/or any other resource that I could use for this upgrade.
Thank you.