On Tue, Dec 16, 2003 at 06:21:16PM +0100, Oliver Welter wrote: > From: Oliver Welter <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [Openca-Users] Signing Request mozilla/secclab > Reply-To: [EMAIL PROTECTED] > Date: Tue, 16 Dec 2003 18:21:16 +0100 > > Hi Folks, > > as there are request for signing the request with mozilla, and I need > this feature too, I want to do the development on this. > > Target: Rewrite FormSigning Code to support secclab.mozilla.org > > 1) Is there anybody out there who has done some work on this > 2) who can tell me what excatly openca wants to receive as a "signed > request?"
There's file signForm.js in htdocs/ca/scripts/C. There's alsa an example at ftp://mozdev.secsup.org/pub/software/mozdev/secclab/common/SignString.html I think we must adapt: function SignString(textField,signatureField){ var sObject; var result; try { sObject = new CLABSignString(); } catch(ex) { alert("CLABSignString is not defined"); return false; } if (sObject == undefined) alert('hole'); var status = {value:0}; var len = {value:0}; try { result = sObject.signString(window,textField.value,textField.value.length,status,len); if (status.value != sObject.STATUS_OK) { alert("Aborted by user or no valid user certificate"); return false; } } catch(ex) { alert("Aborted by user or no valid user certificate"); return false; } signatureField.value = String2Base64(result); //String2Hex(result); return true; } To OpenCA's: function signFormN(theForm, theWindow) { var signedText; signedText = theWindow.crypto.signText(theForm.text.value, "ask"); if ( signedText.length < 100 ) { alert( "Sign is needed to proceed!" ); return false; } theForm.signature.value = signedText; } -- Alexei Chetroi ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Openca-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-users
