diff options
Diffstat (limited to 'crypto/src/cms/SignerInfoGenerator.cs')
-rw-r--r-- | crypto/src/cms/SignerInfoGenerator.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/cms/SignerInfoGenerator.cs b/crypto/src/cms/SignerInfoGenerator.cs index 2fa185885..04c437614 100644 --- a/crypto/src/cms/SignerInfoGenerator.cs +++ b/crypto/src/cms/SignerInfoGenerator.cs @@ -130,8 +130,7 @@ namespace Org.BouncyCastle.Cms */ public SignerInfoGenerator Build(ISignatureFactory contentSigner, X509Certificate certificate) { - SignerIdentifier sigId = new SignerIdentifier(new IssuerAndSerialNumber(certificate.IssuerDN, - new DerInteger(certificate.SerialNumber))); + SignerIdentifier sigId = new SignerIdentifier(new IssuerAndSerialNumber(certificate.CertificateStructure)); SignerInfoGenerator sigInfoGen = CreateGenerator(contentSigner, sigId); |