GithubHelp home page GithubHelp logo

Comments (20)

jariq avatar jariq commented on May 28, 2024

Hello mahdiit, currently I have no plans to create Silverlight version of Pkcs11Interop as there seems to be a lack of demand for such version. You are actually the first person asking for it. Could you please share more info about the conversion process you are using?

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

hi
we have a web application that use security module like smart cart or token for login, as solution for client side for web application we are using applet and java,

silverlight work inside browser with no dependency to .net framework just a plugin and can read token and do other works that we need

if your library can have silverlight version we can develop some app that work without buggy applet that need java runtime also has more security again java applet.

but i am change your library and build my own silverlight class library, googling problems and fix them
some Marshal method needs change and some win32 exception must change

but if there was a official release it can be better
i see some commercial product like NCryptoki (very similar to your product and some class is same as your lib) that they have silverlight version but open source solution for security module always is best

Mahdi Yousefi
Web developer

Sent from my iPad

On ۸ ژانویهٔ ۲۰۱۵, at ۲۳:۳۳, Jaroslav Imrich [email protected] wrote:

Hello mahdiit, currently I have no plans to create Silverlight version of Pkcs11Interop as there seems to be a lack of demand for such version. You are actually the first person asking for it. Could you please share more info about the conversion process you are using?


Reply to this email directly or view it on GitHub.

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Thanks for the detailed info Mahdi. I have managed to get Pkcs11Interop partialy working inside silverlight application but it requires elevated trust otherwise it is unable to access unmanaged PKCS#11 library. I am currently failing to understand why would anyone consider silverlight application to be a better choice than ActiveX component which can utilize full power of .NET and use already available versions of Pkcs11Interop. Have you considered the creation of a custom ActiveX component?

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

yes, we think
at first of all solutions we have activex but activex run only inside internet explorer
it sounds that Microsoft decide to retire IE in next version of windows and new browsers does not like activex (code name spartan)
Microsoft also has an activex component with name capicom.dll that works well as our needs can read certificates from windows cert store and sign pcks messages.

but we need multi platform, browsers solutions like silverlight and java applet

i use trusted silverlight
it has two simple step:
enable a registry key
sign silverlight app with valid signature

better than activex with .net framework installer or applet with JRE
Sent from my iPad

On ۹ ژانویهٔ ۲۰۱۵, at ۲۰:۵۱, Jaroslav Imrich [email protected] wrote:

Thanks for the detailed info Mahdi. I have managed to get Pkcs11Interop partialy working inside silverlight application but it requires elevated trust otherwise it is unable to access unmanaged PKCS#11 library. I am currently failing to understand why would anyone consider silverlight application to be a better choice than ActiveX component which can utilize full power of .NET and use already available versions of Pkcs11Interop. Have you considered the creation of a custom ActiveX component?


Reply to this email directly or view it on GitHub.

from pkcs11interop.

antonio-gabriele avatar antonio-gabriele commented on May 28, 2024

Dear, I'm also interested in Silverlight 5 Version. My use case is the same as mahdiit. I'm according full-trust is a must.

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

I'll try to start experimental branch or new repository for Silverlight5 version next week. I will post more details here when available.

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

thanks from your works
i can share my changes in your library to work with silverlight with you if you need
i build and use silverlight version but can not test all of it

Sent from my iPad

On ۱۷ ژانویهٔ ۲۰۱۵, at ۱۹:۰۵, Jaroslav Imrich [email protected] wrote:

I'll try to start experimental branch or new repository for Silverlight5 version next week. I will post more details here when available.


Reply to this email directly or view it on GitHub.

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Thanks Mahdi, but there is no need to share your changes. I would like to step through the problems by myself alone so I can learn more about Silverlight specifics and also test the implementation thoroughly.

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Hey guys, I would like to know your opinion on these topics:

  1. Have you ever managed to run Silverlight app in-browser with elevated trust on OS X?
    I can't get it working and according to MSDN forum post by Pete Brown trusted in-browser execution is a Windows-only feature. If it is true then Silverlight version of Pkcs11Interop would be also Windows-only.
  2. Are you really performing all steps required to enable in-browser execution with elevated trust on Windows for your production applications?
    It is working for me flawlessly but from my experience setting registry keys and importing code signing certificate into the trusted publishers store is a show stopper for regular users.

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

1- yes, windows only working for in browser
2- need a nsis setup script only about 60-70kb to run on user computer to enable registry key and add selfsign cerfiticate to windows store or use a valid certificate
use NSIS script and create setup for Silverlight Prerequisite
for certificate: Import Root Certificate
for registery key
SetRegView 64 and WriteRegDWORD
SetRegView 32 and WriteRegDWORD

from pkcs11interop.

antonio-gabriele avatar antonio-gabriele commented on May 28, 2024

Correct.

from pkcs11interop.

antonio-gabriele avatar antonio-gabriele commented on May 28, 2024

If you like I can contribute with Setup (Registry Key and Certificate)

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Thank you guys for your prompt answers. They were really helpful.

@AntonioGA thank you for your offer but I plan to provide just the assembly optimized for Silverlight 5. It is up to each individual developer/integrator to link the assembly to his application and to sort runtime prerequisites in an optimal way for his deployment scenario.

BTW I have managed to get the full test suite running today in Silverlight test application. It has identified a few minor problems that still need to be solved but I expect to publish the code (Windows-only for now) in no more than a week.

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

Silverlight out-browser works on all os

in-browser need some changes in registry (windows-only)

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Yes, trusted Silverlight application works for me Out-of-Browser on OS X Yosemite but I am getting System.MethodAccessException when I want to pinvoke unmanaged function such as dlopen() which dynamically loads PKCS#11 library (dlopen is unix equivalent of LoadLibrary function). I have found MSDN article "How to: Call Unmanaged Code from Trusted Applications" which states that:

Platform invoke in Silverlight can only be used on computers running the Windows operating system. There is no Mac support.

If this is true then there is nothing I can do to make Silverlight version work on OS X.

from pkcs11interop.

antonio-gabriele avatar antonio-gabriele commented on May 28, 2024

In my application, I don't have to support Mac and Linux users.
http://www.netmarketshare.com/operating-system-market-share.aspx?qprid=10&qpcustomd=0
Windows has 86.91% market share.

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Hey guys, I have just pushed the changes required for Silverlight to the master branch. Source code can be retrieved via git or downloaded as a ZIP archive. Please let me know if it works for you.

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

thanks, i am testing and inform you about any problem, if exsist

from pkcs11interop.

mahdiit avatar mahdiit commented on May 28, 2024

i test for my work reading slots, keys, sign
no problem in silver light

thanks

from pkcs11interop.

jariq avatar jariq commented on May 28, 2024

Great. Thanks for letting me know.

from pkcs11interop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.