Re: Adding self-signed cert to database

2009-08-15 Thread Subrata Mazumdar
Aditya Ivaturi wrote: If you know that it is a server cert, you can also use the 'nsNSSCertificateDB::ImportServerCertificate() method (http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/sr... ). You have to convert base64 data to DER format before using this method. I h

Re: Adding self-signed cert to database

2009-08-14 Thread Ian G
On 14/08/2009 19:46, Aditya Ivaturi wrote: An explanation of the alphabetic characters may be found on mozilla's web site at http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#... Back in college, I used to have a professor who had a RTFM rubber stamp. And if he were here,

Re: Adding self-signed cert to database

2009-08-14 Thread Aditya Ivaturi
> > If you know that it is a server cert, you can also use the > 'nsNSSCertificateDB::ImportServerCertificate() method > (http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/sr... > ). > You have to convert base64 data to DER format before using this method. > I have solved my curre

Re: Adding self-signed cert to database

2009-08-14 Thread Aditya Ivaturi
> An explanation of the alphabetic characters may be found on mozilla's web > site at > > http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#... > Back in college, I used to have a professor who had a RTFM rubber stamp. And if he were here, he'd have stamped it on my forehead. I

Re: Adding self-signed cert to database

2009-08-13 Thread Subrata Mazumdar
Hi Aditya, you can find trust related info in certutil documentation : http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html. Look for the -t option for the trust arguments. If you know that it is a server cert, you can also use the 'nsNSSCertificateDB::ImportServerCertificate

Re: Adding self-signed cert to database

2009-08-13 Thread Nelson B Bolyard
On 2009-08-13 17:58 PDT, Aditya Ivaturi wrote: > I am writing an xulrunner application, which would take a website's > address, download the cert & import it in to the current firefox > profile database. This is my first xulrunner application & as such > there are few things I am confused about. So

Re: Adding self-signed cert to database

2009-08-13 Thread Aditya Ivaturi
> Also, does this method add the certificate to the > database of the current firefox profile (I am using firefox.exe -app > to launch my app)? Well I have partial answer to that one. XULrunner creates its own profile. Now can I force my xul app to use firefox's profile? The only reason I'd want