Am Dienstag, 13. Januar 2015 12:14:28 UTC+1 schrieb helpcrypto helpcrypto: > On Tue, Jan 13, 2015 at 12:00 PM, Opa114 <opa...@gmail.com> wrote: > > > thanks again. i have compared my code woth your peace of code you posted > > and i have the same. But i still get the Error: CKR_DEVICE_ERROR > > > CKR_DEVICE_ERROR is an error on the cryptoki itself, as stated by PKCS#11 > standard. > I have found several times this error when using buggy smartcards, but > IIRC, never with softkn > > > i loaded the dll's in your posted order. i copied the dll's to > > C:\users\myname\AppData\Local\Temp Folder. the Mozilla Profile folder is > > right, too. so don't know where the problem is. > > > Hope you copied before loading them on the new location ;)
yes i did :) > i read so many documents on the internet, but i found no one which handles > > CKR_DEVICE_ERROR in any good and deep way. > > > > Could it be a problem with the dll-Files? From where did you get the dll's > > and wich version have they? (maybe you could send them to me?) > > > Don't think so. These dll are in the firefox folder. As far as i can > understand, theres no sense to send my dlls to you...they shall be the same okay. but in my Firefox intallation folder are not all the dll's you listed. i know the nspr4.dll is from the NSPR Build. But the edll for example are not on my folder by default: mozutils.dl > Send me a self-contained fully executable hello world/main/test.java and i > can run it against my system, trying to find whats happening. > I think is better to work with your simple use-case/code, instead of > sending you my complex code (lot of classes involved) here ist my little peace of test-code :) http://pastebin.com/e5CCahxN http://pastebin.com/kAsyG5Ai This are my two classes which you need to test it. > > do you think it could be a try to use JSS? but you wrote that JSS sucks. > > I dont recommend you that. If you surrender after first fall, you'll never > win. okay :) > > > i only have to access the keystore and to read out the certificates and to > > delete the certificates and maybe show the private/public keys from some > > certificates. > > > If you aren't going to sign/decrypt..., I suggest you using certutil. yeah but i do't want to run any command line util in background. and maybe this option come in future, so it is better to do the thing right at the beginning > If this start to become a personal conversation, maybe is better to happen > off-list. i don't think it's to personal. maybe other people have the same question or problems :) -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto