How to create a certificate

From: Daniel Engels (no_spam_at_engelsnet.info)
Date: 11/30/04


Date: 30 Nov 2004 03:59:57 -0800

Hello,

I'm not familiar with using scripts to creating certificates.

What I want to do is, that a administror can run a script then fill
out a form with the name, email-adress...

After the input, I hope the script create a private and a public key
and save it in a file. Then the public key have to signed from a CA. I
found a script, that make the request:

...
strReq = Enroll.createPKCS10( strDN, "1.3.6.1.4.1.311.2.1.21")
if ( Err.Number <> 0 ) then
    MsgBox("Error in call to createPKCS10 " & Err.Number)
    err.clear
else
    msgbox("Submitting request " & strReq)
    nDisp = Request.Submit( CR_IN_BASE64 OR CR_IN_PKCS10, _
                            strReq, _
                            "", _
                            "testca\TestCA")
....

But I'm don't think, that this is, what I need. The Request appears in
the CA. But the createPKCS10-Method creates only a request a not a
public and private key.

For the key I need to use a template. How I can create a key using a
template?

Please give me some hints, how I can do this!

Sorry, for my poor english. I hope you understand, what I want to
know!

Thanks a lot!

Daniel



Relevant Pages

  • Re: notice and warning
    ... You expect some piece of data from a post in your script, ... So you use $_REQUEST["userid"] which works perfectly fine as long as you get the userid in via POST. ... Now you find yourself in the situation that when you call this script for any reason without the POST info, you will delete yourself if you prefer $_REQUEST over $_POST. ... Saying that using $_REQUEST 'scales better' is utter nonsense. ...
    (comp.lang.php)
  • Re: notice and warning
    ... You expect some piece of data from a post in your script, ... prefer $_REQUEST over $_POST. ... the different meanings the input should have based on how it arrives. ... that's bad design. ...
    (comp.lang.php)
  • Re: notice and warning
    ... You expect some piece of data from a post in your script, eg: userid. ... prefer $_REQUEST over $_POST. ... in this instance, it scales more 'easily'. ...
    (comp.lang.php)
  • Re: Reading remote Session ID
    ... i use a pink wand, just like your blue wand, but pink. ... Perhaps you can just make it harder for the script by ... require that the IP that makes the request for the page be the same ...
    (alt.php)
  • Re: [PHP] How does the Zend engine behave?
    ... include files compiled when the script is first compiled, ... Now suppose a second request ... PHP script to be executed. ... not actually the PHP tokenization. ...
    (php.general)