note 68805 added to function.openssl-x509-parse

From: Date: Fri, 11 Aug 2006 13:02:26 +0000
Subject: note 68805 added to function.openssl-x509-parse
Groups: php.notes 
Request: Send a blank email to php-notes+get-115788@lists.php.net to get a copy of this message
When dealing with the purposes of a x509 crt file the output of openssl_x509_parse gives an array with following for the purposes: each new array ([purposes][1], [purposes][2] for example) is a new purpose check I compared this output with the output of the command # openssl x509 -purpose -in <x509crt_file> the result i got was that [purposes][x][2] quite obviously is the name of the purpose checked [purposes][x][1] corresponds to the tested purpose (as named in [purposes][x][2]) acting as CA [purposes][x][0] corresponds to the general availability of the purpose [purposes] => Array ( [1] => Array ( [0] => 1 [1] => 1 [2] => sslclient ) [2] => Array ( [0] => 1 [1] => 1 [2] => sslserver ) [3] => Array ( [0] => 1 [1] => 1 [2] => nssslserver ) [4] => Array ( [0] => 1 [1] => 1 [2] => smimesign ) [5] => Array ( [0] => 1 [1] => 1 [2] => smimeencrypt ) [6] => Array ( [0] => 1 [1] => 1 [2] => crlsign ) [7] => Array ( [0] => 1 [1] => 1 [2] => any ) [8] => Array ( [0] => 1 [1] => 1 [2] => ocsphelper ) ) ---- Server IP: 217.13.201.10 Probable Submitter: 212.126.210.250 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.openssl-x509-parse.php Edit -- https://master.php.net/note/edit/68805 Del: integrated -- https://master.php.net/note/delete/68805/integrated Del: useless -- https://master.php.net/note/delete/68805/useless Del: bad code -- https://master.php.net/note/delete/68805/bad+code Del: spam -- https://master.php.net/note/delete/68805/spam Del: non-english -- https://master.php.net/note/delete/68805/non-english Del: in docs -- https://master.php.net/note/delete/68805/in+docs Del: other reasons-- https://master.php.net/note/delete/68805 Reject -- https://master.php.net/note/reject/68805 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115788) next »