-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
build: add openssl-system-ca-path to windows #17066
Conversation
This commit adds the openssl-system-ca-path configuration variable to the windows build system. C:\node>vcbuild.bat /? vcbuild.bat [debug/release] [msi] ... [openssl-system-ca-path path-to-system-certs] [clean] Examples: vcbuild.bat : builds release build ... vcbuild.bat openssl-system-ca-path path : builds using the specified path to system CA (PEM format) in addition to the OpenSSL supplied CA store or compiled-in Mozilla CA copy
vcbuild.bat
Outdated
@@ -115,6 +116,8 @@ if /i "%1"=="no-NODE-OPTIONS" set no_NODE_OPTIONS=1&goto arg-ok | |||
if /i "%1"=="debug-http2" set debug_http2=1&goto arg-ok | |||
if /i "%1"=="debug-nghttp2" set debug_nghttp2=1&goto arg-ok | |||
if /i "%1"=="link-module" set "link_module= --link-module=%2%link_module%"&goto arg-ok-2 | |||
if /i "%1"=="openssl-system-ca-path" ^ | |||
set "openssl_system_ca_path= --openssl-system-ca-path=%2%"&goto arg-ok-2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent here and below?
vcbuild.bat
Outdated
echo vcbuild.bat lint : runs the C++ and JavaScript linter | ||
echo vcbuild.bat openssl-system-ca-path path : builds using the specified path ^ | ||
to system CA (PEM format) in addition to the OpenSSL supplied CA store or ^ | ||
compiled-in Mozilla CA copy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just the Mozilla CA store. OpenSSL doesn't provide certs, it only validates them. =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, I'll update the description. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @bnoordhuis ... PTAL
Again Can I ask for motivation. Is this a common case? If not I would rather we leave it out of vcbuild since it seems like the alternative is trivial:
|
Alternatively we can implement a generic arg parser, that every CLI arg that starts with |
Sorry, I must have missed your first request for motivation this. The motivation is because I thought it should be added to match the options available on Unix-like systems. If doing |
Is there a @refack why do we have to duplicate all the |
I don't think we should. As I see it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced we need to mirror all of configure
's options.
So you can do
Definitely. |
Closing this in preferens of the options give above. Thanks everyone for the feedback/comments! |
This commit adds the
openssl-system-ca-path
configuration variable tothe windows build system.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
build
cc @nodejs/build @nodejs/platform-windows
[refack edited checklist formatting (since GitHub parses it)]