HTTPs issue on Win2k3_x64 server

Dec 9, 2013 at 12:08 PM
Edited Dec 9, 2013 at 4:05 PM
Hi Guys,
I am working on handling REST requests and responses using Casablanca REST SDK. I got "Http Exception[000000000012EA58]" while running my application in "win2k3_x64 server" using "cpprest110_xp_1_2.dll". I did the following steps.
  1. Downloaded and installed msi of "c++ REST SDK for Visual Studio 2012" and got the libs and dlls with respect to win_xp[cpprest110_xp_1_2.dll, cpprest110_xp_1_2.lib]
  2. Linked the downloaded xp lib to my application, changed the platform tool set to "Visual Studio 2012 - Windows XP (v110_xp)",compiled(Release, x64) and got the executables.
  3. While trying to run my application.exe in win2k3_x64 server machine, it is showing http exception as shown below
Error code: "000000000012EA58"
Error code value: -2146893018
Error Message: The message received was unexpected or badly formatted

Note: The same application is working well in win2k8_x64 server machine

I have analysed the responses through "wireshark", which shows that "Client key exchange, change cipher spec, encrypted handshake message" is not happening in win_2k3_x64.

Code Snippet:

http_client_config config = http_client_config();
config.set_validate_certificates(false);
http_client client(L"https://172.30.33.101/api/version", config);

pplx::task<http_response> sampleRequest = client.request(methods::GET);
http_response sampleResponse = sampleRequest.get();
string statusCode = to_string(sampleResponse .status_code());
pplx::task<web::json::value> extractJson= sampleResponse.extract_json();
web::json::value jsonValue = extractJson.get();
wcout<<"Status Code: "<<sampleResponse.status_code()<<endl<<"Response String: "<<jsonValue;

Can you guys help me out to resolve this issue

Attached is the wireshark response for both win2k3x64Image and win2k8x64Image

Many Thanks,
Thameem
Dec 10, 2013 at 3:43 PM
Edited Dec 10, 2013 at 3:44 PM
Hi Guys,

We found the issue to be related with TLS_RSA_WITH_AES_128_CBC_SHA AES128-SHA and TLS_RSA_WITH_AES_256_CBC_SHA AES256-SHA cipher suites missing on Windows 2003.

FYI, we compared wireshark dumps to find missing cipher suite Image.

Installing the hotfix-948963 fixed this issues.
Marked as answer by thameem0036 on 12/10/2013 at 7:44 AM
Dec 10, 2013 at 7:35 PM
Glad to hear you figured out the problem Thameem!

Steve