(PHP 4 >= 4.0.4, PHP 5, PHP 7) openssl_verify — Verify signature Descriptionint openssl_verify ( string Return ValuesReturns 1 if the signature is correct, 0 if it is incorrect, and -1 on error. Changelog
ExamplesExample #1 openssl_verify() example
$pubkeyid = openssl_pkey_get_public("file://src/openssl-0.9.6/demos/sign/cert.pem");// state whether signature is okay or not Example #2 openssl_verify() example
User Contributed Notesmikey at badpenguins dot com 5 years ago
steve dot venable at lmco dot com 13 years ago
Stiv 10 years ago
$fp = fopen("path/file.pem", "r"); jeremie dot gomez at gmail dot com 4 years ago
meint dot post at bigfoot dot com 14 years ago
|