 | SignatureConfigurationAddCertificate Method |
Add a certificate
Add a certificate to the signature configuration.
Adding certificates of the trust chain is often required, if they are missing in the PKCS#11 device's store and
validation information is added (see
ValidationInformation).
For example, if this object has been created using
CreateSignatureFromKeyId(Byte, Stream).
Namespace: PdfTools.Crypto.Providers.Pkcs11Assembly: PdfTools (in PdfTools.dll) Version: 1.18.0+b1d0ba2880e819b0af6ed309ecaa192439f42fd7
Syntaxpublic void AddCertificate(
Stream certificate
)
Parameters
- certificate Stream
-
The certificate in either PEM (.pem, ASCII text) or DER (.cer, binary) form
Exceptions| Exception | Condition |
|---|
| CorruptException | If the certificate is corrupt and cannot be read |
| ArgumentNullException | if certificate is . |
See Also