Bug 24281 - CryptographicException: Unsupported hash algorithm: 1.192.840.113549.1.1.5
Summary: CryptographicException: Unsupported hash algorithm: 1.192.840.113549.1.1.5
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Mono.Security ()
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-11-05 07:17 UTC by Antoine Aubry
Modified: 2014-11-05 07:17 UTC (History)
1 user (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 24281 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 Antoine Aubry 2014-11-05 07:17:07 UTC
When using NuGet to restore packages, I received the following exception for package 'xunit.extensions 1.9.1':

/opt/monodevelop/bin/mono --runtime=v4.0 "/opt/monodevelop/lib/monodevelop/AddIns/MonoDevelop.PackageManagement/NuGet.exe" restore "/home/aaubry/Work/YamlDotNet/YamlDotNet.sln"
Installing 'FakeItEasy 1.13.1'.
Installing 'xunit 1.9.1'.
Installing 'YamlDotNet 2.3.0-rc'.
Installing 'xunit.extensions 1.9.1'.
ERROR building certificate chain: System.ArgumentException: certificate ---> System.Security.Cryptography.CryptographicException: Unsupported hash algorithm: 1.192.840.113549.1.1.5
  at Mono.Security.Cryptography.PKCS1.HashNameFromOid (System.String oid, Boolean throwOnError) [0x00000] in <filename unknown>:0 
  at Mono.Security.X509.X509Certificate.VerifySignature (System.Security.Cryptography.RSA rsa) [0x00000] in <filename unknown>:0 
  at Mono.Security.X509.X509Certificate.VerifySignature (System.Security.Cryptography.AsymmetricAlgorithm aa) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.IsSignedWith (System.Security.Cryptography.X509Certificates.X509Certificate2 signed, System.Security.Cryptography.AsymmetricAlgorithm pubkey) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.Process (Int32 n) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.ValidateChain (X509ChainStatusFlags flag) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 
  at System.Net.ServicePointManager+ChainValidationHelper.ValidateChain (Mono.Security.X509.X509CertificateCollection certs) [0x00000] in <filename unknown>:0 
Please, report this problem to the Mono team
Installing 'YamlDotNet.Core 2.2.0'.
Installing 'YamlDotNet.RepresentationModel 2.2.0'.
Installing 'YamlDotNet.Core 1.2.1'.
Successfully installed 'xunit.extensions 1.9.1'.
Successfully installed 'YamlDotNet.RepresentationModel 2.2.0'.
Successfully installed 'YamlDotNet.Core 2.2.0'.
Successfully installed 'FakeItEasy 1.13.1'.
Successfully installed 'YamlDotNet.Core 1.2.1'.
Successfully installed 'YamlDotNet 2.3.0-rc'.
Installing 'FluentAssertions 2.1.0.0'.
Installing 'YamlDotNet.RepresentationModel 1.2.1'.
Successfully installed 'FluentAssertions 2.1.0.0'.
Successfully installed 'YamlDotNet.RepresentationModel 1.2.1'.
Error: SendFailure (Error writing headers)

The application was terminated by a signal: SIGHUP


Notice that other packages were restored successfully. I am not sure of what is different in that package, but I assume that it is using some different signature algorithm.