Comments (20)
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.
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.
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.
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.
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.
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.
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.
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.
Hey guys, I would like to know your opinion on these topics:
- 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. - 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.
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.
Correct.
from pkcs11interop.
If you like I can contribute with Setup (Registry Key and Certificate)
from pkcs11interop.
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.
Silverlight out-browser works on all os
in-browser need some changes in registry (windows-only)
from pkcs11interop.
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.
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.
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.
thanks, i am testing and inform you about any problem, if exsist
from pkcs11interop.
i test for my work reading slots, keys, sign
no problem in silver light
thanks
from pkcs11interop.
Great. Thanks for letting me know.
from pkcs11interop.
Related Issues (20)
- Private key is not in certificate
- Method C_OpenSession returned CKR_CRYPTOKI_NOT_INITIALIZED
- Pkcs11Interop is not supported on this platform HOT 25
- Missing attribute CKA_NAME_HASH_ALGORITHM
- problem in Pkcs11Interop with new dll from epass 2003
- CKR_OPERATION_NOT_INITIALIZED in multithreaded application
- Missing param represents object handle
- Method C_Login returned CKR_SESSION_HANDLE_INVALID
- Incorrect CK_VERSION string value
- Get Key Value From HSM
- Not able to use C_Sign with yubikey PIV slot with CKA_ALWAYS_AUTHENTICATE HOT 5
- Linux : NativeULong as System.UInt32 causes error while accessing CK_GCM_PARAMS structure from PKCS11 standards HOT 2
- mac os compile problem MAUI .net core 7.0 how to fix ?
- SafeNet Data Objects HOT 7
- ComputeDigest/CreateDigestInfo - with newest Pkcs11Interop - how to ?
- C_Sign returned CKR_OPERATION_NOT_INITIALIZED in multithreaded application
- C_Encrypt with AES mechanism always returns with CKR_GENERAL_ERROR HOT 1
- C_FindObjects does return with nothing while running application in docker
- C_FindObjects does return with nothing while running application in docker HOT 3
- session.Decrypt returning garbage characters appended in PKCS#11 Multipart Decryption with Pkcs11Interop v 4.x.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkcs11interop.