note 74786 added to ref.openssl

From: Date: Fri, 27 Apr 2007 12:31:54 +0000
Subject: note 74786 added to ref.openssl
Groups: php.notes 
Request: Send a blank email to php-notes+get-125915@lists.php.net to get a copy of this message
I generate certificates in such a way. $config = array("config" => "d:/sslcert/openssl.cnf"); $dn = array( "countryName" => "RU", "stateOrProvinceName" => "Russia", "localityName" => "Saint-Petersburg", "organizationName" => "temp", "organizationalUnitName" => "temp", "commonName" => "temp", "emailAddress" => "temp@temp.com" ); $privkey_enc = openssl_pkey_new($config); $csr = openssl_csr_new($dn, $privkey_enc, $config); $sscert = openssl_csr_sign($csr, null, $privkey_enc, 365); openssl_x509_export_to_file($sscert, "d:/cert_enc.crt"); openssl_pkey_export_to_file($privkey_enc, "d:/privkey_enc.pem"); As a result all the received certificates have identical serial number (00). But it should not be! How to avoid it? ---- Server IP: 69.147.83.197 Probable Submitter: 195.182.140.250 ---- Manual Page -- http://www.php.net/manual/en/ref.openssl.php Edit -- https://master.php.net/note/edit/74786 Del: integrated -- https://master.php.net/note/delete/74786/integrated Del: useless -- https://master.php.net/note/delete/74786/useless Del: bad code -- https://master.php.net/note/delete/74786/bad+code Del: spam -- https://master.php.net/note/delete/74786/spam Del: non-english -- https://master.php.net/note/delete/74786/non-english Del: in docs -- https://master.php.net/note/delete/74786/in+docs Del: other reasons-- https://master.php.net/note/delete/74786 Reject -- https://master.php.net/note/reject/74786 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125915) next »