|
Posted by Frank on 03/28/05 02:55
Hi,
I've got this script (piece of it):
$opts = array(
'ssl'=>array(
'local_cert'=>"./cert.pem",
'cafile'=>"./CAcert.pem",
'CN_match'=>'common name',
'verify_peer'=>TRUE
)
);
$context = stream_context_create($opts);
$fp =
stream_socket_client("ssl://127.0.0.1:1234",$errno,$errstr,30,STREAM_CLIENT_CONNECT,$context);
But the connection will not fail regardless which common name is
entered. How do I realy use CN_match and is there a way dump
certificates like dump_peer_certificates in IO::Socket::SSL
Thanks in advanced,
Frank de Bot
Navigation:
[Reply to this message]
|