EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error Using TElX509Certificate.ToX509Certificate2

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.
#20363
Posted: 06/06/2012 15:08:37
by Marcelo Vargas (Standard support level)
Joined: 06/06/2012
Posts: 21

When i use the method TElX509Certificate.ToX509Certificate2 i received an error
"Failure transparent method of safety 'SBX509.TElX509Certificate.ToX509Certificate2 (Boolean)' when calling native code via the method 'SBWinCrypt.__Global.CertDuplicateCertificateContext (IntPtr)'. Methods must be safety-critical or critical safety and available in transparent code to call native code."
#20364
Posted: 06/06/2012 15:14:54
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

What version of SBB do you use? Try to use the latest one and check if the problem still exists.
#20365
Posted: 06/06/2012 17:30:23
by Marcelo Vargas (Standard support level)
Joined: 06/06/2012
Posts: 21

I recently download the Trial Version Version 9.1.215 .
#20366
Posted: 06/07/2012 01:05:54
by Eugene Mayevski (EldoS Corp.)

1) Did you ever have SecureBlackbox installed before? I.e. can it be that older assemblies are picked from elsewhere.
2) Are you calling the method in regular windows application or in ASP.NET or ... ?


Sincerely yours
Eugene Mayevski
#20367
Posted: 06/07/2012 01:07:39
by Vsevolod Ievgiienko (EldoS Corp.)

And what about 10.0.218? You can download it here: https://www.eldos.com/sbb/download-prerelease.php
#20368
Posted: 06/07/2012 01:34:14
by Marcelo Vargas (Standard support level)
Joined: 06/06/2012
Posts: 21

I dont have any other version installed before . I call the method in a Windows application. I try to download the 10.0.218 version and test it
#20370
Posted: 06/07/2012 02:02:02
by Vsevolod Ievgiienko (EldoS Corp.)

Sorry. We've just reviewed our code. Indeed SecurityCritical attribute is not set for ToX509Certificate2 method. The fix will be included into the next SBB build.
#20371
Posted: 06/07/2012 02:19:03
by Marcelo Vargas (Standard support level)
Joined: 06/06/2012
Posts: 21

I download the 10.1 version and for my surprise in the methot WinCertStorage.Count always return 0.
#20372
Posted: 06/07/2012 02:24:01
by Vsevolod Ievgiienko (EldoS Corp.)

You should add storages names using TElWinCertStorage.SystemStores property before trying to get loaded certificates count. For an instance:

Code
TElWinCertStorage c = new TElWinCertStorage();
c.SystemStores.Add("MY");
int count = c.Count;
...
#20376
Posted: 06/07/2012 04:45:26
by Marcelo Vargas (Standard support level)
Joined: 06/06/2012
Posts: 21

in the 9.1.215 version only WinCerStorage.SystemStores.Text = "MY" works
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

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