Cms |
public CmsSigner( IEnumerable<X509Certificate> chain, AsymmetricKeyParameter key, SubjectIdentifierType signerIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber )
Exception | Condition |
---|---|
ArgumentNullException | chain is null. -or- key is null. |
ArgumentException | chain did not contain any certificates. -or- The certificate cannot be used for signing. -or- key is not a private key. |
The initial value of the DigestAlgorithm will be set to Sha256 and both the SignedAttributes and UnsignedAttributes properties will be initialized to empty tables.