note 79295 added to ref.openssl
| From: | daevid at daevid dot com | Date: | Tue, 20 Nov 2007 02:04:59 +0000 |
| Subject: | note 79295 added to ref.openssl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132417@lists.php.net to get a copy of this message | ||
There doesn't seem to be a function here to test if a cert is valid (i.e. not corrupt)... This
bash snippet should help. Sorry it's not PHP. slap it in a system(); call or make it a bash
script and call it that way or something...
if [ "
openssl x509 -in /etc/certs/my.crt -noout -modulus" =
"openssl rsa -in /etc/keys/my.key -noout -modulus" ]; then echo
"Match"; else echo "Different"; fi
----
Server IP: 209.41.74.194
Probable Submitter: 64.81.162.33
----
Manual Page -- http://www.php.net/manual/en/ref.openssl.php
Edit -- https://master.php.net/note/edit/79295
Del: integrated -- https://master.php.net/note/delete/79295/integrated
Del: useless -- https://master.php.net/note/delete/79295/useless
Del: bad code -- https://master.php.net/note/delete/79295/bad+code
Del: spam -- https://master.php.net/note/delete/79295/spam
Del: non-english -- https://master.php.net/note/delete/79295/non-english
Del: in docs -- https://master.php.net/note/delete/79295/in+docs
Del: other reasons-- https://master.php.net/note/delete/79295
Reject -- https://master.php.net/note/reject/79295
Search -- https://master.php.net/manage/user-notes.php