Ashutosh Jaiswal wrote:
Hi all,
I'm trying to locate the key-pair generation code that is sent to the browser(s) for generating public-private key pair with the browser. From following the process on my machine with the 0.9.1.8 I found the perl script basic_csr that seems to be generating the required code. Is the actual javascript (or HTML) code for the process in a separate file that I could study?

First there are two types of browser-based keygeneration - IE and Netscape/Mozilla/Opera. Second the Mozilla code is completely in basic_csr and only Mircosoft's IE uses some scripting code.


Mozilla
-------
- go to basic_csr
- go to line 301

} elsif ( $OPERATION =~ /client-filled-form/i ) {

- go to line 351

if (getRequired("DN_TYPE_".$type."_KEYGEN_MODE") =~ /SPKAC/)

Now you see the keygeneration code for Mozilla. It is only one line.

IE
--
- cd src/common/lib/javascript/C
- view ieCSR.vbs

ieCSR.vbs is a VB script which generates the key and request with an Internet Explorer.

Michael
--
-------------------------------------------------------------------
Michael Bell                   Email: [EMAIL PROTECTED]
ZE Computer- und Medienservice            Tel.: +49 (0)30-2093 2482
(Computing Centre)                        Fax:  +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin                   Email (private): [EMAIL PROTECTED]
Germany                                       http://www.openca.org



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
OpenCA-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to