---
title: "System::Security::Cryptography::Pkcs::SignedCms::ComputeSignature method"
url: "https://reference.aspose.com/tex/cpp/system.security.cryptography.pkcs/signedcms/computesignature/"
product: "Aspose.TeX for C++"
description: "System::Security::Cryptography::Pkcs::SignedCms::ComputeSignature method. Creates a signature in C++."
---

## SignedCms::ComputeSignature method


Creates a signature.

```cpp
void System::Security::Cryptography::Pkcs::SignedCms::ComputeSignature(const SharedPtr<CmsSigner> &signer, bool silent)
```


| Parameter | Type | Description |
| --- | --- | --- |
| signer | const SharedPtr\<CmsSigner\>\& | Signer to use. |
| silent | bool | Whether to suppress asking user for valid certificate if certificate associated with **signer** is not valid. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [CmsSigner](../../cmssigner/)
* Class [SignedCms](../)
* Namespace [System::Security::Cryptography::Pkcs](../../)
* Library [Aspose.TeX for C++](../../../)
