EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TLS ServerName Extension

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
Posted: 04/14/2011 01:42:45
by Aamir Khan (Basic support level)
Joined: 04/14/2011
Posts: 5


I am using the following code to initiate a request

HTTPSClient.SSLEnabled = true;
HTTPSClient.Versions = 4;

int index = HTTPSClient.Extensions.ServerName.Add();

HTTPSClient.Extensions.ServerName.get_Names(index).Name= "https://hostName";

HTTPSClient.Extensions.ServerName.get_Names(index).NameType = SBSSLCommon.TSBSSLServerNameType.ntHostName;

I am calling PUT on the client object.
I am using WireShark to monitor the traffic. I cannot see the ServerName added to the list of extensions.

Where am I going wrong?

Posted: 04/14/2011 02:19:44
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

You should add next line to your code:

HTTPSClient.Extensions.ServerName.Enabled = true;
Posted: 04/14/2011 08:00:57
by Aamir Khan (Basic support level)
Joined: 04/14/2011
Posts: 5

Thanks a lot.



Topic viewed 790 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!