Hi,

my application was working flawlessly with the last official Android for
Mono release. After upgrading to 4.0, however, my online communication code
fails with the following internal error:

12-06 15:20:52.185: I/mono-stderr(16976): ERROR building certificate chain:
System.NullReferenceException: Object reference not set to an instance of an
object
12-06 15:20:52.195: I/mono-stderr(16976):   at
Mono.Security.Cryptography.PKCS1.Encode_v15
(System.Security.Cryptography.HashAlgorithm hash, System.Byte[] hashValue,
Int32 emLength) [0x00000] in
/home/jon/Development/xamarin/mono/mcs/class/corlib/Mono.Security.Cryptography/PKCS1.cs:336
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
Mono.Security.Cryptography.PKCS1.Verify_v15
(System.Security.Cryptography.RSA rsa,
System.Security.Cryptography.HashAlgorithm hash, System.Byte[] hashValue,
System.Byte[] signature, Boolean tryNonStandardEncoding) [0x00020] in
/home/jon/Development/xamarin/mono/mcs/class/corlib/Mono.Security.Cryptography/PKCS1.cs:308
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
Mono.Security.Cryptography.PKCS1.Verify_v15
(System.Security.Cryptography.RSA rsa,
System.Security.Cryptography.HashAlgorithm hash, System.Byte[] hashValue,
System.Byte[] signature) [0x00000] in
/home/jon/Development/xamarin/mono/mcs/class/corlib/Mono.Security.Cryptography/PKCS1.cs:298
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
System.Security.Cryptography.RSAPKCS1SignatureDeformatter.VerifySignature
(System.Byte[] rgbHash, System.Byte[] rgbSignature) [0x00058] in
/home/jon/Development/xamarin/mono/mcs/class/corlib/System.Security.Cryptography/RSAPKCS1SignatureDeformatter.cs:80
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
Mono.Security.X509.X509Certificate.VerifySignature
(System.Security.Cryptography.RSA rsa) [0x000ca] in
/home/jon/Development/xamarin/mono/mcs/class/Mono.Security/Mono.Security.X509/X509Certificate.cs:513
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
Mono.Security.X509.X509Certificate.VerifySignature
(System.Security.Cryptography.AsymmetricAlgorithm aa) [0x0001c] in
/home/jon/Development/xamarin/mono/mcs/class/Mono.Security/Mono.Security.X509/X509Certificate.cs:522
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
System.Security.Cryptography.X509Certificates.X509Chain.IsSignedWith
(System.Security.Cryptography.X509Certificates.X509Certificate2 signed,
System.Security.Cryptography.AsymmetricAlgorithm pubkey) [0x0000f] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:702
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
System.Security.Cryptography.X509Certificates.X509Chain.Process (Int32 n)
[0x00085] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:530
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
System.Security.Cryptography.X509Certificates.X509Chain.ValidateChain
(X509ChainStatusFlags flag) [0x0002c] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:466
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
System.Security.Cryptography.X509Certificates.X509Chain.Build
(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
[0x0001f] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:115
 
12-06 15:20:52.195: I/mono-stderr(16976):   at
System.Net.ServicePointManager+ChainValidationHelper.ValidateChain
(Mono.Security.X509.X509CertificateCollection certs) [0x000a3] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Net/ServicePointManager.cs:475
 
12-06 15:20:52.195: I/mono-stderr(16976): Please, report this problem to the
Mono team

Is this a bug in the new Mono for Android, or am I doing something wrong?

Best regards,

Andreas

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/HTTPS-Communication-fails-after-update-to-4-0-tp5052218p5052218.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to