(PECL OAuth >= 1.0.0)
OAuth::setRSACertificate — 设置 RSA 证书
certRSA 证书。
成功则返回 TRUE ,失败返回 FALSE (例如,RSA证书不能被传递)。
| 版本 | 说明 |
|---|---|
| 1.0.0 |
以前失败时返回 NULL,而不是 FALSE。
|
Example #1 一个 OAuth::setRsaCertificate() 例子
<?php
$consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);
$consume->setRSACertificate(file_get_contents('test.pem'));
?>