-
Notifications
You must be signed in to change notification settings - Fork 582
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
Fix passing self signed cert via arg/env #128
Conversation
btw, this also fixes #65 |
And checking the CA certificate before initializing v2ray would be better. v2ray err handling/logging is a mess. |
@madeye Could you pls update the Android plugin accordingly to fix the issue? I'm currently using a self-build version to use my self signed certificate. |
I thought |
Yes, I have tested it on Android, the issue mentioned in So we won't need to |
If we are using self signed certificate, we can disable system root certificates to enhance security as we know exactly what certificate we will get, even if the attacker has compromised the root certificate system. |
Sure, I think it could be another feature. Anyway, this will work either disable system root cert or not. |
Disabling system root cert is also useful for debugging when the your certificate is not self signed. |
While getting self-signed certs working on Windows, I found an upstream issue here. https://github.com/v2ray/v2ray-core/blob/master/transport/internet/tls/config_windows.go#L9 v2ray will only load the given self-signed cert when The relevant issue here, v2ray/v2ray-core#1513 I think it should load the given cert, whether the I will send a pull request to upstream. For now, self-signed certs cannot work on Windows until we update the upstream. |
By the way what exactly does this PR fix? I don't think this PR serves any purpose. You are supposed to remove EOLs before passing it to arg. @madeye Revert? |
No. Standard x509 cert in PEM format MUST include at least two EOLs. Removing the EOLs will make the cert invalid.
Is invalid PEM format
Will be a valid PEM private key or cert. It will fix Along with v2ray/v2ray-core@3b087bf all issues mentioned in #65 will be solved. But unfortunately, the v2ray upstream somehow reverted the patch. It seems like the guy was misconfiguring his certificates v2ray/v2ray-core#1982 |
Using self-signed cert by passing it |
I see. Thanks. |
We cannot pass standard x509 cert, which includes at least two EOLs, via argument/env.
This patch fixes the issue with self signed certificates on Android and other clients.