解析一個x.509證書並返回一個資源識別符號

openssl_x509_read

(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)

openssl_x509_read解析一個x.509證書並返回一個資源識別符號

說明

openssl_x509_read(mixed $x509certdata): resource

openssl_x509_read() 解析x509certdata提供的證書,並返回一個資源識別符號。

參數

x509certdata

X509 證書。參見 Key/Certificate parameters 獲取可用的值。

返回值

成功,返回一個資源識別符號, 或者在失敗時返回 false.

Leave a Reply

Your email address will not be published. Required fields are marked *