question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSL certificate expired? Stuck on "Collecting Packages"

See original GitHub issue

Like other issues #8 Package Control is stuck on collecting the packages.

image

I looked at the console, and it mentions something about the SSL certificate:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\USER-SOFTWARE\WindowsUtilities\Keypirinha\portable\Profile\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 455, in _get_available_packages
  File "D:\USER-SOFTWARE\WindowsUtilities\Keypirinha\portable\Profile\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 435, in _get_available_packages
  File "D:\USER-SOFTWARE\WindowsUtilities\Keypirinha\python\site\keypirinha_net.py", line 40, in open
    fullurl, *args, data=data, timeout=timeout, **kwargs)
  File "lib\urllib\request.py", line 525, in open
  File "lib\urllib\request.py", line 543, in _open
  File "lib\urllib\request.py", line 503, in _call_chain
  File "lib\urllib\request.py", line 1360, in https_open
  File "lib\urllib\request.py", line 1319, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1076)>
12:01:41.739 ** ERROR: Error from PackageControl.PackageControl.on_suggest: <class 'TypeError'>: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "D:\USER-SOFTWARE\WindowsUtilities\Keypirinha\portable\Profile\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 199, in on_suggest

I tried reinstalling manually (copied latest release into “InstalledPackages” directory, overwriting “old” version), but the error seems to persist.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ueffelcommented, Apr 15, 2022

That’s weird.

So the SSL Certificate from ue.spdns.de (were the package repository is hosted) is valid. In October of last year some Let’s Encrypt Root Certificate expired and some windows systems (mine included) did not automatically got this certificate removed and somehow try to validate certificates to the wrong certificate chain. I don’t know much about it but I noticed that already in https://github.com/Keypirinha/Keypirinha/issues/527.
Edit: Also some has noticed the same in the chatroom https://gitter.im/Keypirinha/Keypirinha?at=625280120466b352a45d6b29

But that’s not the weird part. The plugin should try the alternate repository @ https://ueffel.pythonanywhere.com/ the get the package list but that has to fail also in your case. I wonder why.

Could you do the following:

  • enable debug mode of packagecontrol by using Keypirinha: Configure Package: PackageControl and entering debug = yes in the right file image
  • run PackageControl: Update Repository List
  • open the keypirinha console Keypirinha: Console and copy the contents here?

After that you can solve your problem by deleting the expired certificate manually by following this: https://community.certifytheweb.com/t/upcoming-expiry-of-dst-root-ca-x3-and-r3-intermediate-for-lets-encrypt/1480/7 (and disable debug mode by setting debug = no or deleting the line)

0reactions
ueffelcommented, Sep 7, 2022

image should be like this.

The wrong chain has a “DST Root CA X3” certificate in it, i think

Read more comments on GitHub >

github_iconTop Results From Across the Web

CondaSSLError: OpenSSL appears to be unavailable on this ...
Collecting package metadata (repodata.json): failed CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.
Read more >
How to resolve SSL Certificate Error while installing PIP?
When I'm trying to install PIP using the downloaded package from bootstrap.pypa.io, I'm ...
Read more >
Pip can't confirm SSL certificate - Stack Overflow
I am using Python 3.6.4. – stesteve · 2. Python 3.6 is surely above 3.4. – phd · use pip3 install paramiko not...
Read more >
IIS 7 Still Serving old SSL Certificate - Server Fault
Enter in your website https://example.com and it will show you the expiration date and thumbprint (what MS calls the certificate hash).
Read more >
Repairing Common SSL Certificate Errors - DigiCert.com
Note: If after repairing your SSL Certificate and rebooting your server, you are still receiving intermediate certificate errors, you may need to force...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found