Skip to content

CERT_HAS_EXPIRED certificate has expired is thrown when I'm trying to update sinon package  #2608

Closed

Description

@DaniRvd

Output of bower -v && npm -v && node -v:
C:\Users\[email protected]\source\repos\Portals\CustomerAppNew> bower update sinon
bower sinon#* not-cached http://sinonjs.org/releases/sinon-1.17.6.0.js#*
bower sinon#* resolve http://sinonjs.org/releases/sinon-1.17.6.0.js#*
bower sinon#* download http://sinonjs.org/releases/sinon-1.17.6.0.js
bower sinon#^11.1.2 cached https://github.com/cjohansen/Sinon.JS.git#11.1.2
bower sinon#^11.1.2 validate 11.1.2 against https://github.com/cjohansen/Sinon.JS.git#^11.1.2
bower sinon#* CERT_HAS_EXPIRED certificate has expired

(paste your output here)

Additional environment details (proxy, private registry, etc.):

Steps to reproduce the issue:

Go to 'cmd'
paste 'bower update sinon '
Run
See error CERT_HAS_EXPIRED
Expected behavior
Sinon update should be made without any error
Describe the results you received:

Describe the results you expected:
Sinon update should be made without any error

Additional information:
image
image

Activity

  1. bountyhunt-bot commented on Oct 19, 2021

    @bountyhunt-bot

    A $20 bounty has been put on this issue over at bountyhunt.io.

    Top contributors:

    What is this?

    bountyhunt.io is an open source service that allows people to put bounties on issues, and allows bountyhunters to claim those bounties.

    In a way, we're helping people get paid for the open source work they do, and for people to live off of open source development.

    Additionally, we help bring attention to the issues that matter most in the open source community.

    This comment will only appear once ever, and will be modified if new bounties arrive, to reduce spam.

  2. SergeyLukovnikov commented on Dec 15, 2021

    @SergeyLukovnikov

    what node version?
    i think you should update node

  3. sheerun commented on Mar 14, 2022

    @sheerun
    Contributor

    Please uninstall sinon and install it again with new repository, like so: bower install --save-dev sinonjs/sinon

  4. chhn03 commented on Apr 24, 2023

    @chhn03

    Hi,
    I am getting "CERT_HAS_EXPIRED Request to https://registry.bower.io/packages/angular-aria failed: certificate has expired". while doing bower install. Please suggest what could be the reason of it.

  5. ChristiaanScheermeijer commented on Apr 24, 2023

    @ChristiaanScheermeijer

    @chhn03 I see that the Bower certificate was renewed on Monday, 24 April 2023 at 03:43:54. bower install works on my machine, but Bitbucket pipelines (dockerized) is failing with the same CERT_HAS_EXPIRED error. Still trying to figure out why the certificate isn't renewed automatically there...

  6. mchrapek commented on Apr 24, 2023

    @mchrapek

    @ChristiaanScheermeijer could you check if it still works on your machine after clearing the cache bower cache clean?

  7. mchrapek commented on Apr 24, 2023

    @mchrapek

    Similar issue is open in the bower/registry repository:
    bower/registry#304

  8. ChristiaanScheermeijer commented on Apr 24, 2023

    @ChristiaanScheermeijer

    Yes, it still works after that:

    $ bower cache clean
    
    bower deleted       Cached package angular-bootstrap: /Users/christiaanscheermeijer/.cache/bower/packages/060f2023684d502403f2380d2be22dba/1.3.2
    bower deleted       Cached package angular: /Users/christiaanscheermeijer/.cache/bower/packages/060a9fe0e60a0d3d6c9ed350cde03e61/1.5.8
    bower deleted       Cached package angular: /Users/christiaanscheermeijer/.cache/bower/packages/060a9fe0e60a0d3d6c9ed350cde03e61/1.2.32
    ...
    
    $ bower install
    
    bower angular-cookies#1.5.8 not-cached https://github.com/angular/bower-angular-cookies.git#1.5.8
    bower angular-cookies#1.5.8    resolve https://github.com/angular/bower-angular-cookies.git#1.5.8
    bower angular-mocks#1.5.8   not-cached https://github.com/angular/bower-angular-mocks.git#1.5.8
    bower angular-mocks#1.5.8      resolve https://github.com/angular/bower-angular-mocks.git#1.5.8
    bower angular-gettext#~0.2.4       not-cached https://github.com/rubenv/angular-gettext.git#~0.2.4
    bower angular-gettext#~0.2.4          resolve https://github.com/rubenv/angular-gettext.git#~0.2.4
    ...
    
  9. mchrapek commented on Apr 24, 2023

    @mchrapek

    @ChristiaanScheermeijer Did you delete the bower_components folder before executing these commands? 🤔

  10. ChristiaanScheermeijer commented on Apr 24, 2023

    @ChristiaanScheermeijer

    Yes, well, I renamed the folder because I was scared of losing the files 😅

    image

  11. mchrapek commented on Apr 24, 2023

    @mchrapek

    @ChristiaanScheermeijer okay, strange, last idea, could you show what settings you have in the .bowerrc file? 🤔

  12. ChristiaanScheermeijer commented on Apr 24, 2023

    @ChristiaanScheermeijer

    Sure, here it is:

    {
        "directory": "app/bower_components"
    }
  13. mchrapek commented on Apr 24, 2023

    @mchrapek

    When I added SSL disabling configuration "strict-ssl": false to .bowerrc file, everything fetched fine
    idk, something is wrong with the certificate 🙄

    Edited:
    (I don't recommend this solution as production solution, disabling SSL can be dangerous, I did this just to check if the problem is with SSL)

  14. ajayarjunan commented on Apr 24, 2023

    @ajayarjunan

    Thanks @mchrapek , that worked for me!

  15. 24 remaining items

  16. added a commit that references this issue on May 15, 2023
  17. fanguitocoder commented on May 15, 2023

    @fanguitocoder

    I'm curious. What are peoples reason for using Bower instead of NPM in 2023? Genuinely curious.

    Maintaining old systems, we're on our way to getting rid of bower already.

  18. added a commit that references this issue on May 16, 2023
  19. added a commit that references this issue on May 16, 2023
  20. caiocesarstx commented on May 18, 2023

    @caiocesarstx

    I'm curious. What are peoples reason for using Bower instead of NPM in 2023? Genuinely curious.

    not everyone has a big team and time to update :)

  21. cabexius commented on May 18, 2023

    @cabexius

    look mate, not bashing, some of us guys might be untouched with reality, and stuck in time, we all or should have taken point to migrate. yes we heard it all, let's just help the community to answer their needs for help. and yes to need to update. yes to the need to migrate.

  22. caiocesarstx commented on May 18, 2023

    @caiocesarstx

    look mate, not bashing, some of us guys might be untouched with reality, and stuck in time, we all or should have taken point to migrate. yes we heard it all, let's just help the community to answer their needs for help. and yes to need to update. yes to the need to migrate.

    Yes, but not every system can be updated in a easy way, some companies strugle with daily problems and need to solv them to survive, int the ideal world the migration is easy and fast, but in reality the variables are greater.

  23. added a commit that references this issue on May 31, 2023
  24. added a commit that references this issue on Jun 28, 2023
  25. added a commit that references this issue on Aug 8, 2023
  26. added a commit that references this issue on Oct 23, 2023
  27. added a commit that references this issue on Nov 10, 2023
  28. added a commit that references this issue on Nov 23, 2023
  29. emirmamashov commented on Jun 14, 2024

    @emirmamashov

    I get also this problem, it's fixing when I update node to 11 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions