OAuth::setRSACertificate

Set the RSA certificate

&reftitle.description; public `mixed` `OAuth::setRSACertificate` `string` `cert`

Sets the RSA certificate.

&warn.undocumented.func;
&reftitle.parameters;

`cert`

- The RSA certificate.

&reftitle.returnvalues;

Returns &true; on success, or &false; on failure (e.g., the RSA certificate cannot be parsed.)

&reftitle.changelog;

&Version; | &Description;
PECL oauth 1.0.0 | &oauth.changelog.error.null;

&reftitle.examples;

### An `OAuth::setRsaCertificate` example

    <?php
    $consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);

    $consume->setRSACertificate(file_get_contents('test.pem'));
    ?>

&reftitle.seealso;

- `OAuth::setCaPath`