Re: Accessing Firefox keystore

2014-12-09 Thread opa114
I have the same question / problem. I want to access the mozilla keystore (firefox and thundebird) via Java (No Java Applet) or C#? I found the JSS/NSS Provider, but no information on how to use it and on which way i can access the keystores. So how is it possible? Little example Code would be

Re: Accessing Firefox keystore

2014-12-09 Thread Opa114
I have the same question / problem. I want to access the mozilla keystore (firefox and thundebird) via Java (No Java Applet) or C#? I found the JSS/NSS Provider, but no information on how to use it and on which way i can access the keystores. So how is it possible? Little example Code would be

Re: Accessing Firefox keystore

2014-12-09 Thread Opa114
I have the same question / problem. I want to access the mozilla keystore (firefox and thundebird) via Java (No Java Applet) or C#? I found the JSS/NSS Provider, but no information on how to use it and on which way i can access the keystores. So how is it possible? Little example Code would be

Re: Accessing Firefox keystore

2015-01-14 Thread Opa114
in the secmod.java it checks the Version of NSS: private void fetchVersions() { supported = nssVersionCheck(nssHandle, 3.7); } But the NSS Version i copied from Mozilla-Folder has verson 3.17.2.0. But this error message seems to be that there are problems with the version. --

Re: Accessing Firefox keystore

2015-01-14 Thread Opa114
- People (personal without related private key) -- how did you get this? -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: Accessing Firefox keystore

2015-01-14 Thread Opa114
Am Mittwoch, 14. Januar 2015 20:30:41 UTC+1 schrieb Opa114: in the secmod.java it checks the Version of NSS: private void fetchVersions() { supported = nssVersionCheck(nssHandle, 3.7); } But the NSS Version i copied from Mozilla-Folder has verson 3.17.2.0. But this error message

Re: Get only personal certificates

2015-01-19 Thread Opa114
i have the same question. i tried it withthe code from your post above. but it returns on every check false. Jss has only implemented the function getCACerts() which lists all CA-Certs and getPermCerts() which lists all CA-Certs and the personal certs. but i want to read out every single tab

Mozilla-JSS not found

2015-01-17 Thread Opa114
Hi, i tried this example Code from JSS (http://mxr.mozilla.org/security/source/security/jss/org/mozilla/jss/tests/KeyStoreTest.java). When i run the Code i getthe following error: java.security.KeyStoreException: Mozilla-JSS not found Caused by: java.security.NoSuchAlgorithmException:

Re: Accessing Firefox keystore

2015-01-14 Thread Opa114
i tried it now with JSS and there i could access the Trusted Root CAs and the own certificates. i could remove them, too. now i have to check if i could read the other certificates like Persons, other and root. and i have to check exactly what certificates i get when i call the

Re: Accessing Firefox keystore

2015-01-14 Thread Opa114
i played a little bit with my JSS-Code. it shows me all Certificates fromm all Tabs in the Firefox Builtin Certificate-Manager. But JSS seems to be very buggy. First i read out 183 Certificates. After i removed one certificate and i run the list certificates again it shows me 190 certificates.

Re: Accessing Firefox keystore

2015-01-12 Thread Opa114
okay i will try it by copy the files to %temp% and then try to load it up. What are the exact dependencies which i have to copy? i've read so many different.. :( i'm using JDK 1.8.0_25 for compiling my code. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org

Re: Accessing Firefox keystore

2015-01-12 Thread Opa114
hi again, yeah i googled the last days very much about this topic. so i found out the best solution for me would be so access the softokn3.dll with PKCS#11 Provider in java. i tried a little bit and wrote a small code. but it does not work. i got the Error parsing configuration, Unexpected

Re: Accessing Firefox keystore

2015-01-12 Thread Opa114
at 5:55 PM, Opa114 opa...@gmail.com wrote: i tried it but get another error: Caused by: java.io.IOException: modul not found - C:/Users/Matthias/AppData/Local/Temp/softokn3.dll but the file is in this folder. Where is the problem? -- dev-tech-crypto mailing list dev-tech-crypto

Re: Accessing Firefox keystore

2015-01-09 Thread Opa114
i do. but i want to parse the cert8.db or maybe access this fle in an easier way with JAVA. i have to read the file and maybe i have to remove and/or add new certificate to it. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: Accessing Firefox keystore

2015-01-13 Thread Opa114
Am Dienstag, 13. Januar 2015 19:04:28 UTC+1 schrieb helpcrypto helpcrypto: Thats your mistake: Using softokn+slot=2 will access your personal/installed certificates, not CA/trusted ones. Perhaps slot 1 will do, but I have never tried. On Tue, Jan 13, 2015 at 5:19 PM, Opa114 opa

Re: Accessing Firefox keystore

2015-01-13 Thread Opa114
the link to Oracle Docu did not contain detailed information to all the arguments. yes, Personal works. a way without certutil os not possible? -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: Accessing Firefox keystore

2015-01-13 Thread Opa114
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 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

Re: Accessing Firefox keystore

2015-01-13 Thread Opa114
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

Re: Accessing Firefox keystore

2015-01-13 Thread Opa114
i mean the Server and CA not only own Certificates -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: Accessing Firefox keystore

2015-01-09 Thread Opa114
could you give me a little example or hint how to parse the secmod.db? so that i can try t access the cert8.db with SunPKCS#11? i tried the code posted from above (DBHash.java), too. it reads out the cert8.db- but how can i convert the data i received into a x509 certificate? for example an

Re: Accessing Firefox keystore

2015-01-09 Thread Opa114
could you give me a little example or hint how to parse the secmod.db? so that i can try t access the cert8.db with SunPKCS#11? i tried the code posted from above (DBHash.java), too. it reads out the cert8.db- but how can i convert the data i received into a x509 certificate? for example an

Re: Accessing Firefox keystore

2015-01-12 Thread Opa114
i tried it but get another error: Caused by: java.io.IOException: modul not found - C:/Users/Matthias/AppData/Local/Temp/softokn3.dll but the file is in this folder. Where is the problem? -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org

Re: Accessing Firefox keystore

2015-01-08 Thread Opa114
Thanks for it. I will read your links and try my best to access the cert8.db ;) -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: Problem with importing Certificate into Firefox Keystore with JSS - Cast problem

2015-03-10 Thread Opa114
no one there who could help me to Cast from java.security.cert.X509Certificate to org.mozilla.jss.crypto.X509Certificate ? -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Problem with importing Certificate into Firefox Keystore with JSS - Cast problem

2015-02-24 Thread Opa114
Hi there, i have a little problem. i want to add a certificate t the Firefox keystore this way: X509Certificate certificate = (X509Certificate) CertificateFactory.getInstance(X.509).generateCertificate(new FileInputStream(src//Sohrabi.cer)); cm.importCertToPerm(certificate, testdummystuff);

Re: Accessing Firefox keystore

2015-01-13 Thread Opa114
i searched a little bit around and looked into the Mozilla dll's and i found out that the Built-In Trusted Root CAs are in the nssckbi.dll, so i changed my code to load this dll in libary in the config instead of the softokn3.dll. Programm runs and got no error, but the Size is zero. Any idea

creating a java.security.cert.X509Certificate form PK11InternalTokenCert - public key export??

2015-05-07 Thread Opa114
Hi, when i convert the PK11InternalTokenCert to a java X509Certificate and then i print out the certificate the public key is in this certificate as a: org.mozilla.jss.pkcs11.PK11RSAPublicKey@17050dc, but i want it thee i clear text and normal. How can i do this an my conversation? i did it

Re: JSS - Open Multiple Truststores

2015-06-08 Thread Opa114
Am Montag, 23. April 2007 21:35:57 UTC+2 schrieb Glen Beasley: Dennis Sinelnikov wrote: Hello, Is there a way to open more than 1 NSS truststore using JSS? Specifically, within the same lifecycle of the java application. At this time no. The database NSS currently uses, can't be

How do I convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.X509Certificate?

2015-06-20 Thread Opa114
Just a simple question: How do I convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.X509Certificate? I haveseen that there is a small notice on official JSS FAQ which says i should use: Cryptomanager.importCertPackage() But this method did not work. I got NoSuchItemException, because

Re: [ANNOUNCE] NSS 3.19.2 Release

2015-06-20 Thread Opa114
Am Samstag, 20. Juni 2015 04:04:34 UTC+2 schrieb Ryan Sleevi: The NSS Development Team announces the release of NSS 3.19.2 Network Security Services (NSS) is a patch release for NSS 3.19. No new functionality is introduced in this release. This release addresses a backwards compatibility

Re: How is it possible to instantiate multiple instances of CryptoManager in Java (JSS)?

2015-06-24 Thread Opa114
now i got the CloseDBs Code working and it will close the Database. But i could not create a second or third instance of CryptoManager again. Is this possible?? -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: importing leaf cert into NSS db via JSS

2015-06-20 Thread Opa114
how can i call the method: importCertPackageNative()? i got method not visible error :( -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: How is it possible to instantiate multiple instances of CryptoManager in Java (JSS)?

2015-06-01 Thread Opa114
i found a little bit of code and answers (https://bugzilla.mozilla.org/show_bug.cgi?id=378615), but did not work. get the alreadyInitializedException, too -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Build JSS on Windows Error

2015-06-01 Thread Opa114
Hi, i tried to build the latest version of JSS on windows. but it did not work like the description here: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/JSS/Build_instructions_for_JSS_4.3.x i get the error: JavaBuild Error 2 when it tries to build the jss.jar. but this file

How is it possible to instantiate multiple instances of CryptoManager in Java (JSS)?

2015-05-30 Thread Opa114
Hi, i know how ot create a new Instance of CryptoManager in Java and it all works fine. But i want to access the Firefox and Thunderbird Key-/Certstore simultaneously. So i have two classes for my two applications and when i create new Objects of them i got the Exception that the Cryptomanager

Re: New JSS Version?

2015-08-05 Thread Opa114
Am Dienstag, 14. Juli 2015 14:45:20 UTC+2 schrieb Opa114: Hi, when will be a new release of JSS come out? The last Version is very old and did not support some features of latest NSS, which are very important for me. And the JSS should be improved, because some methods are very bad

New JSS Version?

2015-07-14 Thread Opa114
Hi, when will be a new release of JSS come out? The last Version is very old and did not support some features of latest NSS, which are very important for me. And the JSS should be improved, because some methods are very bad or not implemented. Any information? -- dev-tech-crypto mailing

How to use NSS in my C++ Project?

2015-11-10 Thread Opa114
Hi, can someone explain me how i use NSS and NSPR in my C++ Project? I'm new to C++ and want use in project the NSS libraries, so i thought i could include the header files i need, but did not work, so what's the right way? Must i compile NSS and NSPR first and the use the DLL / Libs? Would

How are the private keys associated with the certificates in the NSS Database?

2016-06-17 Thread Opa114
Hi, can someone tell me more about some technical detail. I want to know how the private keys stored ind the key3.db are associated / linked with the corresponding certificate stored in the cert8.db? I could not find any detail how that was implemented. Hope someone could give me more

LIBPKIX How To Use? (Windows)

2016-11-09 Thread Opa114
Hi there, how can i use the LIBPKIX Library on Windows? Did it everytime only compile a *.lib file instead of a *.dll file like the nss3.dll? Everytime i try to use the PKIX_PL_Cert_VerifySignature Function for example i got the error that the reference to the function is undefined, which

Re: LIBPKIX How To Use? (Windows)

2016-11-10 Thread Opa114
nt to use those functions directly ? > > There is a public PKIX API, CERT_PKIXVerifyCert, which you should use. > > Julien > > > On 11/9/2016 05:56, Opa114 wrote: > > Hi there, > > > > how can i use the LIBPKIX Library on Windows? Did it everytime only compile

Re: NSS open multiple NSS-Databses at once?

2017-01-10 Thread Opa114
Am Dienstag, 10. Januar 2017 22:24:10 UTC+1 schrieb Robert Relyea: > On 01/10/2017 10:18 AM, Opa114 wrote: > > thanks, but these facts i know. > > I don't want top let multiple applications open one Database, i want to > > open multiple different Mozilla databases, in th

Re: NSS open multiple NSS-Databses at once?

2017-01-11 Thread Opa114
Am Mittwoch, 11. Januar 2017 14:23:45 UTC+1 schrieb John Dennis: > On 01/11/2017 03:21 AM, Opa114 wrote: > > Am Mittwoch, 11. Januar 2017 00:45:45 UTC+1 schrieb Robert Relyea: > >> On 01/10/2017 02:07 PM, Opa114 wrote: > >>> Am Dienstag, 10. Januar 2017 22:24:

Re: NSS open multiple NSS-Databses at once?

2017-01-11 Thread Opa114
Am Mittwoch, 11. Januar 2017 00:45:45 UTC+1 schrieb Robert Relyea: > On 01/10/2017 02:07 PM, Opa114 wrote: > > Am Dienstag, 10. Januar 2017 22:24:10 UTC+1 schrieb Robert Relyea: > >> On 01/10/2017 10:18 AM, Opa114 wrote: > >>> thanks, but these facts i know. >

NSS open multiple NSS-Databses at once?

2017-01-08 Thread Opa114
Hi there, i have to use NSS in one of my applications and therefor i have to open multiple databases (for example Firefox and Thunderbird) at once to read and write into these. How can i do this programatically in C++? Some exmaple Code would be very helpful because the whole NSS-Stuff is not