Bug 20167 - "Unsupported hash algorithm" error message
Summary: "Unsupported hash algorithm" error message
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Security ()
Version: unspecified
Hardware: Other Other
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-29 15:26 UTC by andrei.faber
Modified: 2014-06-29 13:35 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 20167 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description andrei.faber 2014-05-29 15:26:49 UTC
Description of Problem:

I'm getting this error message in my program:

 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    |

Steps to reproduce the problem:
1. not sure how to reproduce this


Actual Results:


Expected Results:


How often does this happen? 
always, for a certain computer

Additional Information:
Comment 1 Zoltan Varga 2014-05-29 16:00:38 UTC
Is this a desktop app ? What mono version is this ?
Comment 2 andrei.faber 2014-05-29 16:17:03 UTC
1. yes
2. 3.4.0
Comment 3 andrei.faber 2014-05-29 16:17:29 UTC
* 1 it's a console application
Comment 4 Zoltan Varga 2014-05-29 16:39:47 UTC
-> class libs.
Comment 5 andrei.faber 2014-05-29 16:57:10 UTC
Not sure what you mean.
Comment 6 Peter Hultqvist 2014-06-29 13:35:17 UTC
In my case I found that a third party project embedded an outdated version of Mono.Security. Look for Mono.Security.dll in your build directory.