how to access and use NSS certificate functions From a Firefox extension code?

2014-02-12 Thread WebDoctor
I'm currently working on a project where i need to validate a certificate send by the web application to the browser in an HTTP header. In fact, I don't need an implementation of HTTPS in this project, I only need to validate the Base64 received certificate with the same process used in the HTT

Re: how to access and use NSS certificate functions From a Firefox extension code?

2014-02-13 Thread WebDoctor
testing > > function and is subject to change) > > https://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/nsIX509Cert.idl > > as well as others in > > https://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/ > > > > On

Re: how to access and use NSS certificate functions From a Firefox extension code?

2014-02-14 Thread WebDoctor
> > If the verifyCertNow function works for you, then please file a bug > > about creating an asynchronous version of verifyCertNow. It is OK to > > use verifyCertNow for prototyping, but it is bad to use verifyCertNow > > in the final version of an extension. Ok thank you, I'll first need t

Re: how to access and use NSS certificate functions From a Firefox extension code?

2014-02-20 Thread WebDoctor
Hi, Is there an xpcom interafce to access the certificate public key. I could not find any attribute in the nsIX509Cert intreface to access the certificate publick key? Thank you, you are the best Mozilla Team. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.m

Secret key generation for symmetric encryption in a Firefox extension

2014-02-23 Thread WebDoctor
Hi, I need to generate a cryptographic secure key in a Firefox extension, that will be later used for encrypting data. Is there an XPCOM interface for generating a secret key for encryption ?? Otherwise, can nsIRandomGenerator be usefull in this case ? -- dev-tech-crypto mailing list dev-tec

Verifying a signature using NSS

2016-02-12 Thread WebDoctor
Hi, I'm working in a Firefox extension that will use some cryptographic operations. The problem I found is that when I sign data using the private key in the server-side, I couldn't find any appropriate function in NSS to do public key signature validation. I tried to use PK11_Verify, but thi

Re: Verifying a signature using NSS

2016-02-15 Thread WebDoctor
Le vendredi 12 février 2016 16:06:15 UTC+1, Wan-Teh Chang a écrit : > On Wed, Feb 10, 2016 at 11:50 PM, WebDoctor wrote: > > Hi, > > > > I'm working in a Firefox extension that will use some cryptographic > > operations. > > > > The problem I found is

Re: Verifying a signature using NSS

2016-02-16 Thread WebDoctor
Le mardi 16 février 2016 02:01:01 UTC+1, Wan-Teh Chang a écrit : > On Sat, Feb 13, 2016 at 3:56 PM, WebDoctor wrote: > > > > Thank you for your answer, but when i try to call PK11_Verify inside a js, > > I I get message errors back as:"Couldn't find functio

Re: Verifying a signature using NSS

2016-02-17 Thread WebDoctor
Le mardi 16 février 2016 16:28:47 UTC+1, Wan-Teh Chang a écrit : > On Tue, Feb 16, 2016 at 3:30 AM, WebDoctor wrote: > > > > Thank you so much, yeah I use the nss3.dll file from a Mozilla Firefox > > installation. Because I'm trying to develop a Firefox extensio

Re: Verifying a signature using NSS

2016-02-17 Thread WebDoctor
me know and we can discuss > it. We are still looking to improve that api to the point that it can > support a variety of use cases. > On Feb 17, 2016 2:29 AM, "Wan-Teh Chang" wrote: > > > On Tue, Feb 16, 2016 at 3:30 AM, WebDoctor > > wrote: > > > &g