vrana Wed Dec 10 08:50:44 2003 EDT
Modified files: /phpdoc/en/reference/openssl/functions openssl-csr-sign.xml Log: configargs and serial parameters Index: phpdoc/en/reference/openssl/functions/openssl-csr-sign.xml diff -u phpdoc/en/reference/openssl/functions/openssl-csr-sign.xml:1.8 phpdoc/en/reference/openssl/functions/openssl-csr-sign.xml:1.9 --- phpdoc/en/reference/openssl/functions/openssl-csr-sign.xml:1.8 Sun Mar 30 09:35:24 2003 +++ phpdoc/en/reference/openssl/functions/openssl-csr-sign.xml Wed Dec 10 08:50:44 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/openssl.xml, last change in rev 1.19 --> <refentry id="function.openssl-csr-sign"> <refnamediv> @@ -14,6 +14,8 @@ <methodparam><type>mixed</type><parameter>cacert</parameter></methodparam> <methodparam><type>mixed</type><parameter>priv_key</parameter></methodparam> <methodparam><type>int</type><parameter>days</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>configargs</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>serial</parameter></methodparam> </methodsynopsis> <para> <function>openssl_csr_sign</function> generates an x509 certificate @@ -29,6 +31,11 @@ <parameter>cacert</parameter>. <parameter>days</parameter> specifies the length of time for which the generated certificate will be valid, in days. + You can finetune the CSR signing by <parameter>configargs</parameter>. + See <function>openssl_csr_new</function> for more information about + <parameter>configargs</parameter>. + Since PHP 4.3.3 you can specify the serial number of issued certificate by + <parameter>serial</parameter>. In earlier versions, it was always 0. </para> <para> Returns an x509 certificate resource on success, &false; on failure.