---
title: "System::Security::Cryptography::X509Certificates::X509Certificate::GetPublicKeyString method"
url: "https://reference.aspose.com/font/cpp/system.security.cryptography.x509certificates/x509certificate/getpublickeystring/"
product: "Aspose.Font for C++"
description: "System::Security::Cryptography::X509Certificates::X509Certificate::GetPublicKeyString method. Gets public key from certificate as a hexadecimal string in C++."
---

## X509Certificate::GetPublicKeyString method


Gets public key from certificate as a hexadecimal string.

```cpp
virtual String System::Security::Cryptography::X509Certificates::X509Certificate::GetPublicKeyString() const
```


### ReturnValue

The public key as a hexadecimal string.

## See Also

* Class [String](../../../system/string/)
* Class [X509Certificate](../)
* Namespace [System::Security::Cryptography::X509Certificates](../../)
* Library [Aspose.Font for C++](../../../)
