Mono: problems with certificates for using nuget   April 4th, 2017

I had problems installing nuget packages on CentOS 7 with the mono packages from my copr at https://copr.fedorainfracloud.org/coprs/tpokorra/mono/

I got this error when running nuget restore:

WARNUNG: Error: TrustFailure (Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED)

The solution is to run once this command (see also http://www.mono-project.com/docs/about-mono/releases/3.12.0/#cert-sync):

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

This command is run by default when you install the mono package provided by Xamarin, see https://github.com/mono/linux-packaging-mono/blob/centos/mono-core.spec#L393

Tags:
This entry was posted on Tuesday, April 4th, 2017 at 3:24 pm and is filed under Hosting, Software Development. You can follow any responses to this entry through the RSS 2.0 feed.Both comments and pings are currently closed.

No Responses