PHP - Manual: OAuth::setRSACertificate
2025-02-27
(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'));
?>
官方地址:https://www.php.net/manual/en/oauth.setrsacertificate.php