Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for updates: TlsException: Invalid certificate received from server #8

Closed
movrajr opened this issue Jul 4, 2015 · 2 comments
Closed
Labels

Comments

@movrajr
Copy link
Contributor

movrajr commented Jul 4, 2015

Can't check for updates because Mono doesn't trust the connection.

TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates)

Explanation:

That’s probably because you do not trust the site you are connecting to. Note that a default installation of Mono doesn’t trust anyone!
http://www.mono-project.com/docs/faq/security/

Possible solution #-1, actively ignore security concerns:

ServicePointManager.ServerCertificateValidationCallback = (a, b, c, d) => { return true; };

Alternative solutions: http://www.mono-project.com/archived/usingtrustedrootsrespectfully/

@sschmid sschmid added the bug label Jul 6, 2015
@sschmid
Copy link
Owner

sschmid commented Jul 7, 2015

Hey! I will look into this. It works fine on a Mac. I'll set up a Windows machine to reproduce and then take a look a the solutions described in your links.

@sschmid
Copy link
Owner

sschmid commented Jul 7, 2015

Ok, your solution works fine! Thanks! I'll release a new version soon which will contain your fix.

@sschmid sschmid closed this as completed Jul 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants