note 74986 added to function.openssl-pkey-get-public

From: Date: Mon, 07 May 2007 19:40:36 +0000
Subject: note 74986 added to function.openssl-pkey-get-public
Groups: php.notes 
Request: Send a blank email to php-notes+get-126293@lists.php.net to get a copy of this message
you can get (and save to file) public key using openssl_pkey_get_details(resource $key ) function: <?php $pub_key = openssl_pkey_get_public(file_get_contents('./cert.crt')); $keyData = openssl_pkey_get_details($pub_key); fule_put_contents('./key.pub', $keyData['key']); ?> ---- Server IP: 217.160.72.57 Probable Submitter: 62.206.155.115 ---- Manual Page -- http://www.php.net/manual/en/function.openssl-pkey-get-public.php Edit -- https://master.php.net/note/edit/74986 Del: integrated -- https://master.php.net/note/delete/74986/integrated Del: useless -- https://master.php.net/note/delete/74986/useless Del: bad code -- https://master.php.net/note/delete/74986/bad+code Del: spam -- https://master.php.net/note/delete/74986/spam Del: non-english -- https://master.php.net/note/delete/74986/non-english Del: in docs -- https://master.php.net/note/delete/74986/in+docs Del: other reasons-- https://master.php.net/note/delete/74986 Reject -- https://master.php.net/note/reject/74986 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126293) next »