Function openssl_pkey_get_details can read this resource. Try:
<?php
print_r(openssl_pkey_get_details(openssl_csr_get_public_key($csr)));
?>
openssl_csr_get_public_key
(PHP 5 >= 5.2.0)
openssl_csr_get_public_key — CERT の公開鍵を返す
説明
警告
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
openssl_csr_get_public_key
php at siemenroorda dot nl
29-Sep-2009 02:44
29-Sep-2009 02:44
