EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Certificate PrivateKeyExists

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#29910
Posted: 06/24/2014 10:16:20
by Eugene Mayevski (EldoS Corp.)

Wonderful - your test has answered the question that I was just going to ask.

So you say that the certificate works when loaded from PFX into TElX509Certificate, right?


Sincerely yours
Eugene Mayevski
#29911
Posted: 06/24/2014 10:19:43
by ChrisM (Standard support level)
Joined: 06/23/2014
Posts: 13

Yes Eugene, with LoadFromStreamPFX+password works fine.
#29912
Posted: 06/24/2014 10:23:30
by Eugene Mayevski (EldoS Corp.)

The reason I am re-asking is that we discussed your issue internally and so far it looks like the server doesn't like the provided certificate and just closes connection. This can happen if your PFX contains more than one certificate.

Please do the following: put a breakpoint on the line which calls Post method, and inspect in debugger the value of ClientCertStorage.Count property. If it's more than 1, this means that the PFX contains more than one certificate and that you need to build a chain when adding certificates to MemoryStorage before connection. If the value of Count property is 1, then there's a problem with the handshake.


Sincerely yours
Eugene Mayevski
#29914
Posted: 06/24/2014 10:55:37
by ChrisM (Standard support level)
Joined: 06/23/2014
Posts: 13

Eugene,

Count is 1, I will call the provider and try to catch the handshake issue.
#29915
Posted: 06/24/2014 11:00:34
by Eugene Mayevski (EldoS Corp.)

The issue is local , so there's no need to bother the other side.

Is it possible for you to enroll for some other certificate of the same kind and send it to us (via the Helpdesk ticket, not here) in PFX? I hope that we'll be able to reproduce the issue this way. We don't need to connect to the server (at least on this stage) - if the problem is with CryptoAPI, we should be able to reproduce it by using this certificate for signing the data.


Sincerely yours
Eugene Mayevski
#29916
Posted: 06/24/2014 11:08:07
by ChrisM (Standard support level)
Joined: 06/23/2014
Posts: 13

It's done, #25541
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 2069 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!