[Mono-bugs] [Bug 77342][Wis] Changed - Error loading PKCS#12 with
no password
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jan 24 10:28:52 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by khe at kmd.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=77342
--- shadow/77342 2006-01-24 10:10:22.000000000 -0500
+++ shadow/77342.tmp.17249 2006-01-24 10:28:52.000000000 -0500
@@ -43,6 +43,38 @@
LoadFromFile(string,string) to see if the same problem exists ?
If so could you please add (or attach) the full stack trace to this
bug report.
Thanks
+
+------- Additional Comments From khe at kmd.dk 2006-01-24 10:28 -------
+Using PKCS12.LoadFromFile(myPkcs12File, "") gives this error:
+System.IndexOutOfRangeException : Index was outside the bounds of the
+array.
+
+StackTrace:
+ at Mono.Security.X509.PKCS12.set_Password(String value)
+ at Mono.Security.X509.PKCS12..ctor(Byte[] data, String password)
+ at KMD.YH.PKI2.Crypto.Pkcs12Info.LoadFromMemB64(String
+pkcs12String, String password) in c:\projects\kmd.yh.pki2
+\kmd.yh.pki2.crypto\pkcs12info.cs:line 92
+ at KMD.YH.PKI2.NUnit.Pkcs12InfoTest.LoadFromMemB64NoPwd_Ok() in
+c:\projects\kmd.yh.pki2\kmd.yh.pki2.nunit\pkcs12infotest.cs:line 120
+
+----------------------------------------------------
+
+Using PKCS12.LoadFromFile(myPkcs12File) gives this error:
+System.Security.Cryptography.CryptographicException : Invalid MAC -
+file may have been tampered!
+
+Stacktrace:
+ at Mono.Security.X509.PKCS12.Decode(Byte[] data)
+ at Mono.Security.X509.PKCS12.LoadFromFile(String filename)
+ at KMD.YH.PKI2.Crypto.Pkcs12Info.LoadFromFile(String filename,
+String password) in c:\projects\kmd.yh.pki2
+\kmd.yh.pki2.crypto\pkcs12info.cs:line 75
+ at KMD.YH.PKI2.NUnit.Pkcs12InfoTest.LoadFromFileNoPwd_Ok() in
+c:\projects\kmd.yh.pki2\kmd.yh.pki2.nunit\pkcs12infotest.cs:line 45
+
+If I use the original 1.05.0000 version of Mono.Security.dll I have
+no problems.
More information about the mono-bugs
mailing list