Skip to content

Instantly share code, notes, and snippets.

@chmac
Created June 15, 2018 14:20
Show Gist options
  • Save chmac/78a2dd2bd346026f55fa1bae4f885ae3 to your computer and use it in GitHub Desktop.
Save chmac/78a2dd2bd346026f55fa1bae4f885ae3 to your computer and use it in GitHub Desktop.
Fix Mono No certificates found error on MacOS
#!/bin/sh
# The error was:
# No certificates found, you can install some with one of these commands:
# cert-sync /etc/ssl/certs/ca-certificates.crt #for Debian based systems
# cert-sync /etc/pki/tls/certs/ca-bundle.crt #for RedHat derivatives
# Read more: http://www.mono-project.com/docs/about-mono/releases/3.12.0/#cert-sync
# From here: http://www.mono-project.com/docs/about-mono/releases/4.8.0/#tls-12-support
# The fix was:
curl -L -o /tmp/cacert.pem https://curl.haxx.se/ca/cacert.pem
cert-sync --user /tmp/cacert.pem
@benoitwimart
Copy link

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment