List Info

Thread: note 61857 added to function.openssl-pkcs7-verify




note 61857 added to function.openssl-pkcs7-verify
user name
2006-02-14 00:59:01
There is a hidden sixth argument: string pointing to a file
where the contents of the signed message should be saved.

It is very important for verifying signed and encrypted
messages from MS Outlook which uses opaque signing. After
decrypting of message you will get another MIME envelope
like this:

MIME-Version: 1.0
Content-Disposition: attachment;
filename="smime.p7m"
Content-Type: application/x-pkcs7-mime;
smime-type=signed-data; name="smime.p7m"
Content-Transfer-Encoding: base64

MIIM/QYJ...

Even if you use base64_decode() you will not get decrypted
message but PKCS #7 object.

BTW: How to create opaque signed message like from MS
Outlook? Switch off PKCS7_DETACHED flag (the last 0 does
it):
openssl_pkcs7_sign(
    "full_path_to_message_file", 
   
"full_path_where_to_store_signed_message_file", 
   
"file://full_path_to_my_public_certificate.pem",

   
array("file://full_path_to_my_private_key.pem",
"password"),
    array(),
    0
  );
----
Server IP: 64.246.30.37
Probable Submitter: 84.242.95.6
----
Manual Page -- http://www.php.net/manual/en/function.openssl-pkcs
7-verify.php
Edit        -- http://master.php.net/manage/user-notes.php?action=
edit+61857
Delete: added to the manual -- htt
p://master.php.net/manage/user-notes.php?action=delete+61857
&report=yes&reason=added+to+the+manual
Delete: bad code            -- http://master.
php.net/manage/user-notes.php?action=delete+61857&report
=yes&reason=bad+code
Delete: spam                -- http://master.php.
net/manage/user-notes.php?action=delete+61857&report=yes
&reason=spam
Delete: useless             -- http://master.p
hp.net/manage/user-notes.php?action=delete+61857&report=
yes&reason=useless
Delete: non-english         -- http://mast
er.php.net/manage/user-notes.php?action=delete+61857&rep
ort=yes&reason=non-english
Delete: already in docs     -- http://
master.php.net/manage/user-notes.php?action=delete+61857&
;report=yes&reason=already+in+docs
Delete: other reasons       -- http://master.php.net/manage/user-
notes.php?action=delete+61857&report=yes
Reject      -- http://master.php.net/manage/user-
notes.php?action=reject+61857&report=yes
Search      -- http://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )