EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElHTTPSClient credentials

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 03/11/2016 04:48:15
by pppggg (Basic support level)
Joined: 03/11/2016
Posts: 3

I am trying example from Samples\C#\XMLBlackbox\Desktop\AdvancedSigner project. I would like to upgrade xades to xades-a, but I need enter credentials to TSA, otherwise when I call method
int k = XAdESVerifier.AddSigAndRefsTimestamp(TSPClient);

I get error code 83970. So please is there some way to enter credentials?
I tried this solution, but still I got 83970.

var httpClient = new SBHTTPSClient.TElHTTPSClient();
httpClient.SetRequestHeader("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(userName + ":" + password)));
TSPClient.HTTPClient = httpClient;
Posted: 03/11/2016 04:51:07
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

You should use TElHTTPSClient.RequestParameters.Username/Password properties to enter login credentials. Details: https://www.eldos.com/documentation/sb...arams.html

I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.
Posted: 03/14/2016 08:22:28
by pppggg (Basic support level)
Joined: 03/11/2016
Posts: 3

Thank you for quick answer.

If I may continue with another question, we need add some proxy setting. (I have tested code without proxy - everything is OK.) When I use proxy, I get as well error code 83970 after calling

int k = XAdESVerifier.AddSigAndRefsTimestamp(TSPClient);

Setting is in this shape

var TSPClient = new SBHTTPTSPClient.TElHTTPTSPClient();
var httpClient = new SBHTTPSClient.TElHTTPSClient();
TSPClient.HashAlgorithm = SBConstants.Unit.SB_ALGORITHM_DGST_SHA1;
TSPClient.URL = "http://www.postsignum.cz/DEMOTSA/TSS_user/";        
httpClient.RequestParameters.Username = "demoTSA";
httpClient.RequestParameters.Password = "demoTSA2010";

httpClient.UseHTTPProxy = true;
httpClient.HTTPProxyUsername = "domain\\user";
httpClient.HTTPProxyPassword = "password";                
httpClient.HTTPProxyHost = "proxy.iis.loc";
httpClient.HTTPProxyPort = 8080;
httpClient.HTTPProxyAuthentication = 1;
TSPClient.HTTPClient = httpClient;

// Also, as I found on forum, I tried this for https with result:
// Connection lost (error code is 100353)

// httpClient.UseWebTunneling = true;
// httpClient.WebTunnelAddress = "proxy.iis.loc";
// httpClient.WebTunnelPort = 8080;
// httpClient.WebTunnelPassword = "password";
// httpClient.WebTunnelUserId = "domain/user";
// httpClient.WebTunnelAuthentication = 1;

When I use .NET class, for working with proxy, I can connect correctly, so connection information should by fine.
Please is there anything else, I can set or should I look in our infrastructure?
Posted: 03/14/2016 09:03:59
by Eugene Mayevski (EldoS Corp.)

It looks like you need to use NTLM authentication. Please set UseNTLM property of the component to true. This will enable the use of NTLM for authentication.

Sincerely yours
Eugene Mayevski
Posted: 03/14/2016 10:22:20
by pppggg (Basic support level)
Joined: 03/11/2016
Posts: 3

It helped, thank you for your advice.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.



Topic viewed 1429 times



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!