OAuth::setRSACertificate
PHP function
Edit on GitHub ✎
(PECL OAuth >= 1.0.0)
Set the RSA certificate
Description
OAuth::setRSACertificate(string $cert): mixed
Sets the RSA certificate.
Func
Parameters
certThe RSA certificate.
Return Values
Returns true on success, or false on failure (e.g., the RSA certificate cannot be parsed.)
Changelog
| Version | Description |
|---|---|
| PECL oauth 1.0.0 | Null |
Examples
An OAuth::setRsaCertificate example
php
<?php
$consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);
$consume->setRSACertificate(file_get_contents('test.pem'));
?>See Also
OAuth::setCaPath