|
PHP5中文手册
openssl_pkcs7_sign(PHP 4 >= 4.0.6, PHP 5) openssl_pkcs7_sign — Sign an S/MIME message 说明
bool openssl_pkcs7_sign
( string $infilename
, string $outfilename
, mixed $signcert
, mixed $privkey
, array $headers
[, int $flags
[, string $extracerts
]] )
openssl_pkcs7_sign() takes the contents of the file named infilename and signs them using the certificate and its matching private key specified by signcert and privkey parameters. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例
Example#1 openssl_pkcs7_sign() example
<?php |