smaoski.dll

4/14/2011 11:54:14 AM
Gravatar
Total Posts 8

Re: smaoski.dll

Bonjour,

I use SafeNet ProtectServer Orange, I instal SDK(mode software only) to emulate . how can i create an C# application that use its cryptoki.dll .

regards

4/14/2011 2:19:34 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: smaoski.dll

First of all read the quick guide you can find in the download page.

Than install NCryptoki SDK, that you can download from the same page. In the SDK you will find a sample project that help you to start writing application in C# with NCryptoki.

Finally, refer the the wiki for more info, code snippets and so on.

4/20/2011 6:11:08 PM
Gravatar
Total Posts 8

Re: smaoski.dll

dear Ugo,

 

i tried to generate a certificate fram onather , but i have yhis error message

Error 1 'Cryptware.NCryptoki.X509Certificate' does not have a constructor that accepts arguments '1 'D: \ Documents and Settings \ missbah \ My Documents \ Visual Studio 2008 \ Projects \ HSMtest \ HSM \ Program.cs 256 40 HSM

 

regards

4/27/2011 7:40:17 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: smaoski.dll

You cannot generate a certificate from another. Certificate objects are attached to the related token objects.

You cannot create new certificate objects without creating a new certificate object in the token.

What are you trying to do?

8/12/2012 9:22:52 AM
Gravatar
Total Posts 1

Re: smaoski.dll

I am using Ncrypto to coding digital sign for my text. and my token in epass3003. I initialized crypto like this: 

  Cryptoki cryptoki = new Cryptoki("smaoscki.dll");

          int nret = cryptoki.Initialize();

            if (nret != 0)
            {
                error(nret);
            }

but when i run my code an exception occur that says: "An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

I also replaced "smaoscki.dll" with my token pkc#11 dll but still this exeption occurs.

How should i do?

Thanks

8/13/2012 12:46:44 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: smaoski.dll

You are using NCryptoki in a .NET 4 application.

Read this: http://ncryptoki.com/Forums/Thread.aspx?pageid=9&mid=22&ItemID=1&thread=3

7/1/2014 3:42:22 PM
Gravatar
Total Posts 1

Re: smaoski.dll

Hello,

I'm using the gclib.dll (Gemalto). I have an error

"The selected PKCS#11 module seems to be invalid. Error code: -2147467259"

?????

Thank you for your answer.

7/1/2014 3:46:05 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: smaoski.dll

this error appears when one of the following happen:

 

1) You are running the application on a 64bit OS and are trying to load a 32bit PKCS#11 dll

2) The PKCS#11 dll is not found or you don't have the permission to access such a dll