OAuth::setRSACertificate
(PECL OAuth >= 1.0.0)
OAuth::setRSACertificate — 设置 RSA 证书
参数
cert
RSA 证书。
示例
示例 #1 一个 OAuth::setRsaCertificate() 例子
<?php
$consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);
$consume->setRSACertificate(file_get_contents('test.pem'));
?>参见
- OAuth::setCaPath() - 设置 CA 路径和信息
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
