|
PHP5中文手册
openssl_csr_sign(PHP 4 >= 4.2.0, PHP 5) openssl_csr_sign — Sign a CSR with another certificate (or itself) and generate a certificate 说明
resource openssl_csr_sign
( mixed $csr
, mixed $cacert
, mixed $priv_key
, int $days
[, array $configargs
[, int $serial
]] )
openssl_csr_sign() generates an x509 certificate resource from the given CSR.
参数
返回值Returns an x509 certificate resource on success, FALSE on failure. 更新日志
范例
Example#1 openssl_csr_sign() example - signing a CSR (how to implement your own CA)
<?php |