cloudfoundry-community / .net-buildpack

Cloud Foundry buildpack for running .NET applications
Apache License 2.0
22 stars 26 forks source link

System.Security.Cryptography.CryptographicException: Unsupported hash algorithm: 1.2.840.113549.1.3.5 #40

Open mrdavidlaing opened 10 years ago

mrdavidlaing commented 10 years ago

We're seeing System.Security.Cryptography.CryptographicException: Unsupported hash algorithm: 1.2.840.113549.1.3.5:

 ERROR building certificate chain: System.ArgumentException: certificate ---> System.Security.Cryptography.CryptographicException: Unsupported hash algorithm: 1.2.840.113549.1.3.5
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at Mono.Security.Cryptography.PKCS1.HashNameFromOid (System.String oid, Boolean throwOnError) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at Mono.Security.X509.X509Certificate.VerifySignature (System.Security.Cryptography.RSA rsa) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at Mono.Security.X509.X509Certificate.VerifySignature (System.Security.Cryptography.AsymmetricAlgorithm aa) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at System.Security.Cryptography.X509Certificates.X509Chain.IsSignedWith (System.Security.Cryptography.X509Certificates.X509Certificate2 signed, System.Security.Cryptography.AsymmetricAlgorithm pubkey) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at System.Security.Cryptography.X509Certificates.X509Chain.Process (Int32 n) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at System.Security.Cryptography.X509Certificates.X509Chain.ValidateChain (X509ChainStatusFlags flag) [0x00000] in
 <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   --- End of inner exception stack trace ---
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |   at System.Net.ServicePointManager+ChainValidationHelper.ValidateChain (Mono.Security.X509.X509CertificateCollection certs) [0x00000] in <filename unknown>:0
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    |
2014-05-29T14:16:54.05-0500 [App/0]   OUT monitor    | Please, report this problem to the Mono team
2014-05-29T14:16:54.25-0500 [App/0]   OUT monitor    |
mrdavidlaing commented 10 years ago

This has been reported upstream to the mono project - https://bugzilla.xamarin.com/show_bug.cgi?id=20167

fandrei commented 10 years ago

This bug is reported in the console output of the latency monitors bot. No ideas how to reproduce this (yet).

fandrei commented 10 years ago

PS this happens on Mono 3.4.0

mrdavidlaing commented 10 years ago

For testing using mono-3.2.5_net45

cf push $BOT_NAME -p bin -b https://github.com/cityindex/.net-buildpack-mono-3.2.5_net45 -m 256MB --no-route --no-hostname