php[world] 2017

openssl_x509_check_private_key

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

openssl_x509_check_private_keyBir gizli anahtarın bir sertifikaya karşılık olup olmadığına bakar

Açıklama

bool openssl_x509_check_private_key ( mixed $x509sert , mixed $anahtar )

Belirtilen gizli anahtarın belirtilen sertifikaya karşılık olup olmadığına bakar.

Değiştirgeler

x509sert

openssl_x509_read() tarafından döndürülen bir X509 sertifika özkaynağı.

anahtar

Gizli anahtar.

Dönen Değerler

Gizli anahtar, x509sert'in karşılığı ise TRUE yoksa FALSE döner.

add a note add a note

User Contributed Notes 2 notes

up
2
jared at enhancesoft dot com
2 years ago
This function will return FALSE if the private key requires a pass phrase.
up
0
chris dot kistner at gmail dot com
6 years ago
Please note that this function only compares the public key component of the private key with the public key residing in the certificate.
To Top