---
title: "System::Security::Cryptography::X509Certificates::RSACertificateExtensions class"
url: "https://reference.aspose.com/pdf/cpp/system.security.cryptography.x509certificates/rsacertificateextensions/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Security::Cryptography::X509Certificates::RSACertificateExtensions class. Provides methods to retrieve RSA keys from X509Certificate2 objects in C++."
---

## RSACertificateExtensions class


Provides methods to retrieve [RSA](../../system.security.cryptography/rsa/) keys from [X509Certificate2](../x509certificate2/) objects.

```cpp
class RSACertificateExtensions
```

## Methods

| Method | Description |
| --- | --- |
| static [GetRSAPrivateKey](./getrsaprivatekey/)(const SharedPtr\<X509Certificate2\>\&) | Gets [RSA](../../system.security.cryptography/rsa/) private key from the certificate. |
| static [GetRSAPublicKey](./getrsapublickey/)(const SharedPtr\<X509Certificate2\>\&) | Gets [RSA](../../system.security.cryptography/rsa/) public key from the certificate. |
## See Also

* Namespace [System::Security::Cryptography::X509Certificates](../)
* Library [Aspose.PDF for C++](../../)
