note 127132 added to function.openssl-x509-export-to-file

From: Date: Wed, 25 May 2022 17:18:02 +0000
Subject: note 127132 added to function.openssl-x509-export-to-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-218524@lists.php.net to get a copy of this message
I m trying to create a Certificate CA = not self signed. I 'm using the function PHP openssl_x509_export For create Self Signed certificate noone problem. But when i must create a certificate with Owner different from the Issuer i don't know how to do. I try with this code $dn["issuer"] = array("C" => "US", "O" => "DigiCert Inc", "OU" => "digicert.com", "CN" => "DigiCert High Assurance CA-3"); $dn["owner"] = array("CN" => "twitter.com" , "O" =>"TIWTTER INC", "L" => "San Francisco" , "S"=> "California", "C" => "US" ); $privkey = openssl_pkey_new(); openssl_pkey_export_to_file($privkey, $keypath); $csr = openssl_csr_new($dn, $privkey); openssl_csr_export_to_file($csr, $requestpath); $sscert = openssl_csr_sign($csr, null, $privkey, 365); openssl_x509_export_to_file($sscert, $cerpath); $src = getcwd(); with no result Someone know the solution? ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.12.131 (proxied: 37.162.160.124) ---- Manual Page -- https://php.net/manual/en/function.openssl-x509-export-to-file.php Edit -- https://main.php.net/note/edit/127132 Del: integrated -- https://main.php.net/note/delete/127132/integrated Del: useless -- https://main.php.net/note/delete/127132/useless Del: bad code -- https://main.php.net/note/delete/127132/bad+code Del: spam -- https://main.php.net/note/delete/127132/spam Del: non-english -- https://main.php.net/note/delete/127132/non-english Del: in docs -- https://main.php.net/note/delete/127132/in+docs Del: other reasons-- https://main.php.net/note/delete/127132 Reject -- https://main.php.net/note/reject/127132 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#218524) next »