The CEO EOD; / / save message to file $fp = fopen("msg.txt", "w"); fwrite($fp, $data); fclose($fp); / / encrypt it if (openssl_pkcs7_sign("msg.txt", "signed.txt", "mycert.pem", array("mycert.pem", "mypassphrase"), array("To "= "joes@sales.com", / / keyed syntax "From:
例 1 openssl_pkcs7_sign() の例