Skip to content

[Bug] Expired SSL certificate #1661

@bessjb

Description

@bessjb

Prerequisite

Environment

The certificate for the downloads page expired several days ago:
Image

Getting the following error when attempting to download resnet50 weights:

Downloading: "https://download.openmmlab.com/pretrain/third_party/resnet50_v1c-2cccc1ad.pth" to /root/.cache/torch/hub/checkpoints/resnet50_v1c-2cccc1ad.pth                            
Traceback (most recent call last):                                                                                                                                                      
  File "/opt/conda/lib/python3.10/urllib/request.py", line 1348, in do_open                                                                                                             
    h.request(req.get_method(), req.selector, req.data, headers,                                                                                                                        
  File "/opt/conda/lib/python3.10/http/client.py", line 1283, in request                                                                                                                
    self._send_request(method, url, body, headers, encode_chunked)                                                                                                                      
  File "/opt/conda/lib/python3.10/http/client.py", line 1329, in _send_request                                                                                                          
    self.endheaders(body, encode_chunked=encode_chunked)                                                                                                                                
  File "/opt/conda/lib/python3.10/http/client.py", line 1278, in endheaders                                                                                                             
    self._send_output(message_body, encode_chunked=encode_chunked)                                                                                                                      
  File "/opt/conda/lib/python3.10/http/client.py", line 1038, in _send_output                                                                                                           
    self.send(msg)                                                                                                                                                                      
  File "/opt/conda/lib/python3.10/http/client.py", line 976, in send                                                                                                                    
    self.connect()                                                                                                                                                                      
  File "/opt/conda/lib/python3.10/http/client.py", line 1455, in connect                                                                                                                
    self.sock = self._context.wrap_socket(self.sock,                                                                                                                                    
  File "/opt/conda/lib/python3.10/ssl.py", line 513, in wrap_socket                                                                                                                     
    return self.sslsocket_class._create(                                                                                                                                                
  File "/opt/conda/lib/python3.10/ssl.py", line 1104, in _create                                                                                                                        
    self.do_handshake()                                                                                                                                                                 
  File "/opt/conda/lib/python3.10/ssl.py", line 1375, in do_handshake                                                                                                                   
    self._sslobj.do_handshake()                                                                                                                                                         
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007) 

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions