HTTPS WebServices client with TLS 1.2 and SHA-2 support (.NET Compact Framework)
HTTPS WebServices client with TLS 1.2 and SHA-2 support.
Windows mobile OS's do not support SHA-2 algorithms. This is why you cannot connect to many modern webservices which are using SHA-2 based certicates.
This sample demonstrates:
- Calling WebServices using modern HTTSP (SSL 3.0, TLS-1.0-1.2, SHA-2 based certificates support include)
- Redirecting WebServices transport layer to use Rebex HttpRequestCreator
Sample code
C#
// create an instance of Rebex HTTP/HTTPS request creator var creator = new HttpRequestCreator(); // specify enabled TLS/SSL versions (TLS 1.2, 1.1 and 1.0 are enabled by default; // legacy SSL 3.0 is also supported, but it is no longer considered secure) // creator.Settings.SslAllowedVersions = TlsVersion.TLS12 | TlsVersion.TLS11 | TlsVersion.TLS10; // register request creator to handle HTTP and HTTPS requests // (replaces .NET's default HttpWebRequest) creator.Register(); // now you can use WebRequest as usual - it will use Rebex HttpRequestCreator WebRequest request = WebRequest.Create("https://test.rebex.net/");