[Mono-bugs] [Bug 678140] New: crash when creating a PKCS#7 signature
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 9 10:11:52 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=678140
https://bugzilla.novell.com/show_bug.cgi?id=678140#c0
Summary: crash when creating a PKCS#7 signature
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System.Security
AssignedTo: spouliot at novell.com
ReportedBy: diego_cai at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=418314)
--> (http://bugzilla.novell.com/attachment.cgi?id=418314)
Source code of the application
User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.2.15)
Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15
I am trying to sign some data and generate a CMS (Cryptographic Message Syntax)
using a certificate in PKCS#12 format and the following name spaces:
System.Security.Cryptography, System.Security.Cryptography.Pkcs,
System.Security.Cryptography.X509Certificates.
When I run the application on DOT NET 3.5, I obtain the CMS but on MONO 2.6.7
and 2.10.1 the application thrown an Cryptographic Exception:
Unhandled Exception: System.Security.Cryptography.CryptographicException:
at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature
(System.Security.Cryptography.Pkcs.CmsSigner signer) [0x00000] in <filename
unknown>:0
at TestPkcs7Signature.Pkcs7Signature.Main (System.String[] args) [0x00000] in
<filename unknown>:0
Reproducible: Always
Steps to Reproduce:
1. Compile: gmcs -r:System,System.Security pkcs7signature.cs
2. Run: mono pkcs7signature.exe
Actual Results:
Cryptographic Exception:
Unhandled Exception: System.Security.Cryptography.CryptographicException:
at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature
(System.Security.Cryptography.Pkcs.CmsSigner signer) [0x00000] in <filename
unknown>:0
at TestPkcs7Signature.Pkcs7Signature.Main (System.String[] args) [0x00000] in
<filename unknown>:0
Expected Results:
The espected result is the signed data in PKCS#7 format (CMS)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list