Bug 1591094

Summary: Certificate_verify_failed
Product: [Fedora] Fedora Reporter: Lance Haverkamp <Lance>
Component: monoAssignee: Xavier Lamien <lxtnow>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 28CC: alexl, chkr, itamar, john.j5live, lxtnow, mbarnes, pokorra.mailinglists, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-17 04:33:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lance Haverkamp 2018-06-14 04:38:51 UTC
I'm trying to run the Duplicati backup program, which relies on mono to connect to remote storage such as Amazon S3, or BackBlaze B2 (which I use). I'm getting CERTIFICATE_VERIFY_FAILED error.

The release notes from Mono suggest that a manual sync shouldn't be needed on RedHat derivatives, but adds that cert-sync is available "which synchronizes the Mono SSL certificate store against your OS certificate store"

sudo cert-sync /etc/pki/tls/certs/ca-bundle.crt

is returning:

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver..cctor () [0x00062] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.Console..cctor () [0x000a8] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at Mono.Tools.CertSync.Main (System.String[] args) [0x00037] in <e14d5123bc22484f8e0510200156fa93>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver..cctor () [0x00062] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.Console..cctor () [0x000a8] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at Mono.Tools.CertSync.Main (System.String[] args) [0x00037] in <e14d5123bc22484f8e0510200156fa93>:0 

What needs fixed to connect securely to internet services using Mono?

Comment 1 Timotheus Pokorra 2018-06-17 04:33:02 UTC

*** This bug has been marked as a duplicate of bug 1580447 ***

Comment 2 Timotheus Pokorra 2018-09-21 06:54:46 UTC
*** Bug 1592178 has been marked as a duplicate of this bug. ***