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

VeniceEXT HTTPS Request fails on Linux (Certificate validation error) #579

Closed
smrb opened this issue Dec 31, 2020 · 2 comments
Closed

VeniceEXT HTTPS Request fails on Linux (Certificate validation error) #579

smrb opened this issue Dec 31, 2020 · 2 comments

Comments

@smrb
Copy link

smrb commented Dec 31, 2020

Hello,

following line of code does not work on my linux hosted servers.
res = Net:GetHTTP("https://gitlab.com/n4gi0s/vu-mapvote/-/raw/master/mod.json");

The error I'm getting:
[VeniceEXT] HTTP Request failed with error ‘Certificate validation error: Failed to verify certificate chain: CA not trusted’.

Afaik wine should use the certificates installed on the linux machine just fine, I don't know why it doesn't do it in this case. Just another quirk of hosting vu on linux, that should maybe investigated later.

@smrb
Copy link
Author

smrb commented Dec 31, 2020

Additional Information:
System: Ubuntu 20.04 64bit
Running latest wine.

Here is the mod where I encountered the problem: https://gitlab.com/n4gi0s/vu-mapvote
The author tried to fix this by deactivating cert verification like this:

   options = HttpOptions({['verifyCertificate']=false}); --ignore cert for wine users
   res = Net:GetHTTP("https://gitlab.com/n4gi0s/vu-mapvote/-/raw/master/mod.json", options);

This did not help, this is why I suspect a problem with VeniceEXT / the lua interface when running wine.

@OrfeasZ
Copy link
Contributor

OrfeasZ commented Jan 19, 2021

This should be fixed in build 17485. VU comes with a pre-bundled set of CA certificates that it uses for validation (which was probably outdated). You can override the one it uses by passing the -cacert parameter with a path to a custom CA bundle.

@OrfeasZ OrfeasZ closed this as completed Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants