note 32690 modified in function.openssl-x509-read by didou

From: Date: Wed, 04 Jun 2003 15:00:59 +0000
Subject: note 32690 modified in function.openssl-x509-read by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49724@lists.php.net to get a copy of this message
After some tests I've been able to get some results this way ... <?php $fp = fopen("/etc/httpd/conf/ssl/moncertif.crt", "r"); $cert = fread($fp, 8192); fclose($fp); echo "Read<br>"; echo openssl_x509_read($cert); echo "<br>"; echo "*********************"; echo "<br>"; echo "Parse<br>"; print_r(openssl_x509_parse($cert)); /* // or print_r(openssl_x509_parse( openssl_x509_read($cert) ) ); */ ?> enjoy ;) --was-- Apres qq tests j'ai reussi à avoir des resultats avec ca ... <?php $fp = fopen("/etc/httpd/conf/ssl/moncertif.crt", "r"); $cert = fread($fp, 8192); fclose($fp); echo "Read<br>"; echo openssl_x509_read($cert); echo "<br>"; echo "*********************"; echo "<br>"; echo "Parse<br>"; print_r(openssl_x509_parse($cert)); /* // ou bien print_r(openssl_x509_parse( openssl_x509_read($cert) ) ); */ ?> enjoy ;) http://www.php.net/manual/en/function.openssl-x509-read.php

« previous php.notes (#49724) next »