-
Notifications
You must be signed in to change notification settings - Fork 12k
ng update ignores strict-ssl configuration #10596
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
Comments
Would be useful to respect cafile property as well. |
Thanks a lot :) |
Which version will this be included in? |
Hello? 6.1.1 and this is still an issue. There are no alternative ways of getting this to work at the moment, which means that we're going to have to drop angular soon. |
It seems that there is a regression with 6.1.X. |
I tracked the issue down to schematics/update/update/npm.ts#L125-L139. Looks like function getNpmClientSslOptions(strictSsl, cafile) {
const sslOptions = {};
sslOptions.strict = strictSsl;
if (cafile) {
sslOptions.ca = fs_1.readFileSync(cafile);
}
return sslOptions;
} In addition, I also had to manually pass my registry even though I have it set in my environment as ng update --all --registry=$npm_config_registry |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
When using a
.npmrc
file which containsfor self signed certificates,
ng update @angular/cli
ignores the strict-ssl config and prints outunable to verify the first certificate
and aborts.The text was updated successfully, but these errors were encountered: