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.

SSLCert error when listing obj

See original GitHub issue

I was following the linode guide to using the linode-cli and I ran into an issue working with my object storage.

I configured my CLI with a PAT, and I can list my linode volumes, etc, but when I attempt to list my object storage buckets, I get an SSL error.

os info: OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22000 N/A Build 22000

python info: Python 3.9.4

I’m getting this error when I run the linode-cli from both powershell and windows cmd prompt.

PS C:\Users\kreeh> linode-cli obj ls
Traceback (most recent call last):
  File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python39\Scripts\linode-cli.exe\__main__.py", line 7, in <module>
  File "c:\python39\lib\site-packages\linodecli\__init__.py", line 509, in main
    plugins.invoke(parsed.command, plugin_args, context)
  File "c:\python39\lib\site-packages\linodecli\plugins\__init__.py", line 34, in invoke
    plugin.call(args, context)
  File "c:\python39\lib\site-packages\linodecli\plugins\obj.py", line 830, in call
    COMMAND_MAP[parsed.command](get_client, args)
  File "c:\python39\lib\site-packages\linodecli\plugins\obj.py", line 123, in list_objects_or_buckets
    buckets = client.get_all_buckets()
  File "c:\python39\lib\site-packages\boto\s3\connection.py", line 443, in get_all_buckets
    response = self.make_request('GET', headers=headers)
  File "c:\python39\lib\site-packages\boto\s3\connection.py", line 667, in make_request
    return super(S3Connection, self).make_request(
  File "c:\python39\lib\site-packages\boto\connection.py", line 1070, in make_request
    return self._mexe(http_request, sender, override_num_retries,
  File "c:\python39\lib\site-packages\boto\connection.py", line 1030, in _mexe
    raise ex
  File "c:\python39\lib\site-packages\boto\connection.py", line 942, in _mexe
    connection.request(request.method, request.path,
  File "c:\python39\lib\http\client.py", line 1253, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "c:\python39\lib\http\client.py", line 1299, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "c:\python39\lib\http\client.py", line 1248, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "c:\python39\lib\http\client.py", line 1008, in _send_output
    self.send(msg)
  File "c:\python39\lib\http\client.py", line 948, in send
    self.connect()
  File "c:\python39\lib\http\client.py", line 1422, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "c:\python39\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "c:\python39\lib\ssl.py", line 1040, in _create
    self.do_handshake()
  File "c:\python39\lib\ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)
PS C:\Users\kreeh>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
klreehercommented, Mar 15, 2022

My system isn’t set forward past that date 😕

I did get another windows machine to test this on, and I had a somewhat different experience. I couldn’t get Windows Terminal / Powershell to recognize the Linode-CLI command (which worked just fine on my main machine), but when I installed linode-cli in the ubuntu subsystem on windows, I didn’t have any problems using linode-cli or listing the obj storage.

So, I think there’s some issue with my main machine’s configuration of the python install that’s getting bubbled up oddly. If I can pin that down more, I will update this with more info, but I don’t think the problem is with linode-cli, so I’m going to close this issue.

0reactions
Dorthucommented, Mar 15, 2022

We’ve retested this internally, this time on Windows, and still can’t reproduce the error you’re seeing.

The certificates for the us-southeast-1 cluster are valid through March 30th:

wsmith@linode$ curl https://us-southeast-1.linodeobjects.com -vvv 2>&1 | grep expire
*  expire date: Mar 30 19:37:10 2022 GMT

Any chance your system time is set forward past that date? What was the code you used to test this with boto without the CLI?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect error message when adding ssl-cert to the ... - GitHub
When I do the following command, I do see the certificate in the list. az network application-gateway ssl-cert list. But, all the certificates ......
Read more >
node.js - Error accessing GCP Cloud Storage public object
I'm getting following error while reading SSL cert file from GCP Cloud Storage. * Connected to [my.website.com] (A.b.
Read more >
InfoPath Form and SSL Cert Error - SharePoint Stack Exchange
Open the SharePoint Management Shell to run the PowerShell commands. Get the ADFS root certificate: a. $root = New-Object System.Security.Cryptography.
Read more >
Setting up SSL Certificate for an Object Store
Select the object store for which you want to set the certificate. Click Replace SSL Cert. In the Replace SSL Certificate window, select...
Read more >
Error getting the SSL context object - Google Groups
I have verified the verified the java keystore and key cert password, I was able to list the keystore content and view the...
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