You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fresh certificate has incorrect expiration date #304
#0 1.681 bower angular-elastic#2.4.2 CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/angular-elastic failed: certificate has expired
ERROR: failed to solve: process "/bin/bash -o pipefail -c bower install" did not complete successfully: exit code: 1
Reacted by Pankaj Patel, Merih Sakarya, Amit Oli, Piyush Asnani, Abhinav S, Petr Urban, Anders Theet, Ebenezer Akinola, ori-haraldurb, Dinescu Alex and 8 more
It's true that the certificate is issued today, but its expiration date is July 23.
It seems to me that something wrong with the new certificate because we have the same problem:
bower angular#~1.5.0 CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/angular failed: certificate has expired
Reacted by Marek Chrapek, Pankaj Patel, Merih Sakarya, Denys Teslenko, Eugene Melnik, Ebenezer Akinola, Prajakta Tiwari, Fazal M, Audrey Turco and Anton Demydov
Im experiencing this behaviour from my Jenkins CI/CD for Docker image creation.
Is there any temp solution? such as alterative registry? I don't want to disable SSL.
Reacted by Merih Sakarya, Brian Hogg, Prajakta Tiwari and Audrey Turco
any idea when this can be sorted out, CI/CD is having the cert issue with installing the bower, looking for some solution without disabling SSL
Reacted by Merih Sakarya, Piyush Asnani, Oleksandr Bezobrazov, Amit Oli, maisterlein, Łukasz Czerepuk, Martijn Clarenbeek, Alex Ilichev, HanyzOski, Ishant Sahu and 8 more
From what we have noticed, this issue seems to be happening in the servers/machines that was already performing bower commands, which has some SSL certificate caching present during the SSL handshake process. For new machines (where bower command is ran for the first time), the issue seems not present
As a temporary work around, we commented out bower command from the CI/CD process(since we do not have new packages being added at the moment) and retained a copy of the bower_components folder in the server (this is not recommended approach, but had to do this to solve a deployment blocker).
Need to find a permanant fix next day!
Reacted by Martijn Clarenbeek, BardMathieu and niveditha-mava
Only bower install command I execute on the newer node (for example 12), and the rest of the commands for building the project I execute on the version I need.
Not sure how permanent of a solution it is as I've seen it mentioned that certs for node versions <10 are discontinued now, but at least it worked for us and it sure beats turning off SSL.
Reacted by ujjwaldave, naveen-khoros, Audrey Turco, Andrew Klug, Aman Raj, Eugene Melnik, fernandpo and tconere-accela
I'm trying to keep a legacy app building, one that uses old versions of node and bower. I can't at the moment upgrade either of them. These build on Windows build agent computers. Most of the solutions listed here are for linux build systems, so I can't do any of those.
We have a couple dozen ".bowerrc" files in the build, and adding some lines to those files is possible. I've seen two possible temporary solutions listed in this thread. Thanks very much to the folks who suggested them. The two choices open to me seem to be to either add this line:
Both seem risky. Can someone please help me understand which one is riskier? Keep in mind that I'm completely inexperienced in Bower, NPM, Ember, and the other technologies that this app is built with (I'm a C# guy normally). The first option, as I understand it, would make it possible for us to retrieve some of our modules from sites with expired SSL certificates, but at least we'd be getting those files from the same places as we did before. I've tried that one and it works as a temporary fix. The second, seems like we'd be changing the place where we get the files from, which to me sounds much riskier.
@tfabris how old is the Ember app? It shouldn't take too much work to remove Bower and get ember-auto-import working which was designed to replace it in v3 of Ember.
Other options include using Docker to build the app for deploy and setting the version of node to something like "FROM node:14-alpine as ember"
Using "strict-ssl": false is a working option, disables certs obviously but its probably the quickest option in the short term.
@mattsputnikdigital thanks for that information. The ember app is years old and the people who knew how to maintain its build system are no longer with the company. Replacing the build system with a new one certainly "sounds" simple but keep in mind that I have no idea how it works, like, at all.
I'm also thinking that "strict-ssl": false seems like the better option, because I looked at the herokuapp.com cert and it expires next year anyway thus it would just kick the can down the road a bit.
@mattsputnikdigital thanks for that information. The ember app is years old and the people who knew how to maintain its build system are no longer with the company. Replacing the build system with a new one certainly "sounds" simple but keep in mind that I have no idea how it works, like, at all.
I'm also thinking that "strict-ssl": false seems like the better option, because I looked at the herokuapp.com cert and it expires next year anyway thus it would just kick the can down the road a bit.
Yes if you can accept the risk of the "strict-ssl": false then it would be fine. If you need help with Ember my company manages lots of older Ember sites and could probably get it working without Bower for you if you need assistance.
You need to either update node to a version which works, I believe over 10 or set "strict-ssl": false I do not think this is going to be fixed otherwise.
Activity
[-]Fresh certificate has wrong expiring date[/-][+]Fresh certificate has incorrect expiration date[/+]mchrapek commentedon Apr 24, 2023
It's true that the certificate is issued today, but its expiration date is July 23.
It seems to me that something wrong with the new certificate because we have the same problem:
PankajPatel007 commentedon Apr 24, 2023
I too facing the same issue.
(node:16801)[DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.Warning: Request to https://registry.bower.io/packages/angular-resource failed: certificate has expired Use --force to continue.`
pejorativefox commentedon Apr 24, 2023
Also seeing this in our CI/CD pipelines.
ajayarjunan commentedon Apr 24, 2023
Same here, the SSL certificate needs to be properly created and installed for https://registry.bower.io/packages/ to get this resolved:
ajayarjunan commentedon Apr 24, 2023
As @mchrapek mentioned here:- bower/bower#2608 (comment), adding
"strict-ssl": falseto .bowerrc file made it workedEdit: This is not a recommended approach, but for testing only.
mchrapek commentedon Apr 24, 2023
but I don't recommend this solution, disabling SSL can be dangerous, I did this just to check if the problem is with SSL
galregev commentedon Apr 24, 2023
Im experiencing this behaviour from my Jenkins CI/CD for Docker image creation.
Is there any temp solution? such as alterative registry? I don't want to disable SSL.
khoros-chandrakala commentedon Apr 24, 2023
any idea when this can be sorted out, CI/CD is having the cert issue with installing the bower, looking for some solution without disabling SSL
ajayarjunan commentedon Apr 24, 2023
From what we have noticed, this issue seems to be happening in the servers/machines that was already performing bower commands, which has some SSL certificate caching present during the SSL handshake process. For new machines (where bower command is ran for the first time), the issue seems not present
As a temporary work around, we commented out bower command from the CI/CD process(since we do not have new packages being added at the moment) and retained a copy of the
bower_componentsfolder in the server (this is not recommended approach, but had to do this to solve a deployment blocker).Need to find a permanant fix next day!
lucasDechenier commentedon Apr 24, 2023
Hello Guys, any solution for this?
I Had the same on CircleCI:
bower invalid-meta for:/root/project/watson2/bower.json
bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/angular-media-queries failed: certificate has expired
Exited with code exit status 1
CircleCI received exit code 1
In my Steps I run:
steps:
GabeGates commentedon Apr 24, 2023
Same issues here, setting
strict-sslto false has worked as a temp solution. Hope this is resolved soon.hoggworks commentedon Apr 24, 2023
I'm having the same issue in our Jenkins pipeline.
SomeBdyElse commentedon Apr 24, 2023
I have the same issue in a CI pipeline. Its an oudated node and bower version
curl had the same issue:
I fixed the issue for curl by removing an invalid itermediary cert:
But bower still has the same issue:
Would it be possible that bower somehow uses a differnt ca-cert folder than curl?
SomeBdyElse commentedon Apr 24, 2023
This seems to be true, but it is fixable:
and it went just fine.
So for me the entire fix was:
11 remaining items
mchrapek commentedon Apr 25, 2023
bower installworks for newer versions of node.Only
bower installcommand I execute on the newer node (for example 12), and the rest of the commands for building the project I execute on the version I need.It worked for us.
amanneesharma commentedon Apr 26, 2023
Having the same issue.
Tried some step as below:
Worked for me!!!
amit-oli-khoros commentedon Apr 26, 2023
Hi @sheerun , Is there any update on the fix that you were working on?
ujjwaldave commentedon Apr 26, 2023
+1, is there any ETA on this fix.
stormonster commentedon Apr 26, 2023
As I mentioned here, a temporary solution that solved the issue for us was to use the heroku-mirror rather than the regular registry.
Rather than turning off SSL we've set the
registryparameter in the.bowerrclike this.Not sure how permanent of a solution it is as I've seen it mentioned that certs for node versions <10 are discontinued now, but at least it worked for us and it sure beats turning off SSL.
tfabris commentedon Apr 27, 2023
I'm trying to keep a legacy app building, one that uses old versions of node and bower. I can't at the moment upgrade either of them. These build on Windows build agent computers. Most of the solutions listed here are for linux build systems, so I can't do any of those.
We have a couple dozen ".bowerrc" files in the build, and adding some lines to those files is possible. I've seen two possible temporary solutions listed in this thread. Thanks very much to the folks who suggested them. The two choices open to me seem to be to either add this line:
"strict-ssl": falseOr to add this line:
"registry": "https://bower.herokuapp.com"Both seem risky. Can someone please help me understand which one is riskier? Keep in mind that I'm completely inexperienced in Bower, NPM, Ember, and the other technologies that this app is built with (I'm a C# guy normally). The first option, as I understand it, would make it possible for us to retrieve some of our modules from sites with expired SSL certificates, but at least we'd be getting those files from the same places as we did before. I've tried that one and it works as a temporary fix. The second, seems like we'd be changing the place where we get the files from, which to me sounds much riskier.
Does anyone have an opinion on this?
Thanks!
mattsputnikdigital commentedon Apr 27, 2023
@tfabris how old is the Ember app? It shouldn't take too much work to remove Bower and get ember-auto-import working which was designed to replace it in v3 of Ember.
Other options include using Docker to build the app for deploy and setting the version of node to something like "FROM node:14-alpine as ember"
Using "strict-ssl": false is a working option, disables certs obviously but its probably the quickest option in the short term.
tfabris commentedon Apr 27, 2023
@mattsputnikdigital thanks for that information. The ember app is years old and the people who knew how to maintain its build system are no longer with the company. Replacing the build system with a new one certainly "sounds" simple but keep in mind that I have no idea how it works, like, at all.
I'm also thinking that "strict-ssl": false seems like the better option, because I looked at the herokuapp.com cert and it expires next year anyway thus it would just kick the can down the road a bit.
mattsputnikdigital commentedon Apr 27, 2023
Yes if you can accept the risk of the "strict-ssl": false then it would be fine. If you need help with Ember my company manages lots of older Ember sites and could probably get it working without Bower for you if you need assistance.
tfabris commentedon Apr 27, 2023
@mattsputnikdigital Thanks so much for your help and advice. That's a kind offer to help us out. If we decide to go that route I'll ping you.
azajkhan commentedon Apr 28, 2023
Still facing issues
14:14:32 bower oauth-js#0.4.8
CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/oauth-js failed: certificate has expired
azajkhan commentedon Apr 28, 2023
14:22:14 bower angular-recaptcha#4.2.0 CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/angular-recaptcha failed: certificate has expired
mattsputnikdigital commentedon Apr 28, 2023
You need to either update node to a version which works, I believe over 10 or set "strict-ssl": false I do not think this is going to be fixed otherwise.
GabeGates commentedon Apr 29, 2023
Our company was able to get passed this by upgrading to node 18
hma1983 commentedon May 10, 2023
Ran into the same problem, we are using node 8, can't upgrade to new version either at least for another year.
I used this silly workaround, switch to node 12 for bower install, then change back to node 8 for gulp build: