PHP Doku:: Überprüft, ob ein privater Schlüssel zu einem Zertifikat passt - function.openssl-x509-check-private-key.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzKryptografische ErweiterungenOpenSSLOpenSSL Funktionenopenssl_x509_check_private_key

Ein Service von Reinhard Neidl - Webprogrammierung.

OpenSSL Funktionen

<<openssl_verify

openssl_x509_checkpurpose>>

openssl_x509_check_private_key

(PHP 4 >= 4.2.0, PHP 5)

openssl_x509_check_private_keyÜberprüft, ob ein privater Schlüssel zu einem Zertifikat passt

Beschreibung

bool openssl_x509_check_private_key ( mixed $cert , mixed $key )

Prüft ob der übergebene Schlüssel key der private Schlüssel zum Zertifikat cert ist.

Parameter-Liste

cert

Das Zertifikat

key

Der private Schlüssel.

Rückgabewerte

Gibt TRUE zurück wenn key der private Schlüssel zum Zertifikat certist, andernfalls FALSE.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
chris dot kistner at gmail dot com
7.01.2011 11:35
Please note that this function only compares the public key component of the private key with the public key residing in the certificate.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)