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

Disable system root #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Disable system root #65

wants to merge 2 commits into from

Conversation

Mygod
Copy link
Collaborator

@Mygod Mygod commented Mar 12, 2019

See also: #1, #50, v2ray/v2ray-core#1513

This code isn't quite working yet. I expect to see failed connections when the certificate provided is invalid, but instead the connection went through and only this showed up: [Error] v2ray.com/core/transport/internet/tls: failed to load system root certificate > v2ray.com/core/transport/internet/tls: failed to append cert.

@VictoriaRaymond Thoughts?

@ghost
Copy link

ghost commented Mar 25, 2019

Can someone review these changes??

@icpz
Copy link
Contributor

icpz commented Jul 23, 2019

I found this line, an error cert will return a nil x509 pool, and then this nil is assigned to config.RootCAs in tls/config.go, which would lead golang's tls client to use system root (check RootCAs part here).

It seems to be an upstream issue?

@icpz
Copy link
Contributor

icpz commented Jul 23, 2019

Maybe we could verify the cert before passing it to v2ray/core.

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

Successfully merging this pull request may close these issues.

2 participants