note 41962 added to function.openssl-x509-checkpurpose

From: Date: Tue, 27 Apr 2004 20:18:07 +0000
Subject: note 41962 added to function.openssl-x509-checkpurpose
Groups: php.notes 
Request: Send a blank email to php-notes+get-68906@lists.php.net to get a copy of this message
hopefully, this will help anyone else working with this function. output from var_dump of the purposes of a cert gives: array(8) { [1]=> array(3) { [0]=> bool(true) [1]=> bool(false) [2]=> string(9) "sslclient" } [2]=> array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> string(9) "sslserver" } [3]=> array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> string(11) "nssslserver" } [4]=> array(3) { [0]=> bool(true) [1]=> bool(false) [2]=> string(9) "smimesign" } [5]=> array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> string(12) "smimeencrypt" } [6]=> array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> string(7) "crlsign" } [7]=> array(3) { [0]=> bool(true) [1]=> bool(true) [2]=> string(3) "any" } [8]=> array(3) { [0]=> bool(true) [1]=> bool(false) [2]=> string(10) "ocsphelper" } } the true-false,false-false, etc was confusing until i ran openssl x509 -purpose agains the cert for more info: Certificate purposes: SSL client : Yes SSL client CA : No SSL server : No SSL server CA : No Netscape SSL server : No Netscape SSL server CA : No S/MIME signing : Yes S/MIME signing CA : No S/MIME encryption : No S/MIME encryption CA : No CRL signing : No CRL signing CA : No Any Purpose : Yes Any Purpose CA : Yes OCSP helper : Yes OCSP helper CA : No which makes sense now as regular purposes vs CA purposes ---- Manual Page -- http://www.php.net/manual/en/function.openssl-x509-checkpurpose.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41962 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41962&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41962&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68906) next »