(PECL OAuth >= 1.0.0)
OAuth::setRSACertificate — establece el certificado RSA
Establece el certificado RSA.
Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.
certEl certificado RSA.
Devuelve TRUE si tiene éxito, o FALSE al fallar (Ejemplo, el certificado RSA
no se pudo procesar.)
| Versión | Descripción |
|---|---|
| 1.0.0 |
Antes devolvía NULL en caso de falla, en lugar de FALSE.
|
Ejemplo #1 Ejemplo de OAuth::setRsaCertificate()
<?php
$consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);
$consume->setRSACertificate(file_get_contents('test.pem'));
?>