Repository: stable-diffusion-webui
Issue: [Bug]: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [X] The issue has been reported before but has not been fixed yet

### What happened?

When i try to run any command, i get the error in the logs shown below

### Steps to reproduce the problem

1. Install sbwebui
2. Run any prompt
3. See error

### What should have happened?

Prompt should be processed. Otherwise error should be displayed in the webui more properly and some advice on how to fix this should be added

### What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

### Sysinfo

[sysinfo-2024-01-04-09-16.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13828140/sysinfo-2024-01-04-09-16.json)


### Console logs

```Shell
Downloading VAEApprox model to: /config/02-sd-webui/webui/models/VAE-approx/vaeapprox-sdxl.pt
*** Error completing request
*** Arguments: ('task(fefteyzwclgts22)', 'test', '', [], 5, 'DPM++ 2M Karras', 1, 1, 2, 1024, 1024, False, 0.7, 2, 'Latent', 0, 0, 0, 'Use same checkpoint', 'Use same sampler', '', '', [], <gradio.routes.Request object at 0x152958e27c10>, 0, False, '', 0.8, -1, False, -1, 0, 0, 0, False, False, 'positive', 'comma', 0, False, False, 'start', '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False) {}
    Traceback (most recent call last):
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 1348, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/config/02-sd-webui/env/lib/python3.11/http/client.py", line 1294, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/config/02-sd-webui/env/lib/python3.11/http/client.py", line 1340, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/config/02-sd-webui/env/lib/python3.11/http/client.py", line 1289, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/config/02-sd-webui/env/lib/python3.11/http/client.py", line 1048, in _send_output
        self.send(msg)
      File "/config/02-sd-webui/env/lib/python3.11/http/client.py", line 986, in send
        self.connect()
      File "/config/02-sd-webui/env/lib/python3.11/http/client.py", line 1466, in connect
        self.sock = self._context.wrap_socket(self.sock,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/ssl.py", line 517, in wrap_socket
        return self.sslsocket_class._create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/ssl.py", line 1108, in _create
        self.do_handshake()
      File "/config/02-sd-webui/env/lib/python3.11/ssl.py", line 1383, in do_handshake
        self._sslobj.do_handshake()
    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/config/02-sd-webui/webui/modules/call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/call_queue.py", line 36, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/txt2img.py", line 55, in txt2img
        processed = processing.process_images(p)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/processing.py", line 734, in process_images
        res = process_images_inner(p)
              ^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/processing.py", line 808, in process_images_inner
        sd_vae_approx.model()
      File "/config/02-sd-webui/webui/modules/sd_vae_approx.py", line 53, in model
        download_model(model_path, 'https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/download/v1.0.0-pre/' + model_name)
      File "/config/02-sd-webui/webui/modules/sd_vae_approx.py", line 39, in download_model
        torch.hub.download_url_to_file(model_url, model_path)
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/torch/hub.py", line 611, in download_url_to_file
        u = urlopen(req)
            ^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 519, in open
        response = self._open(req, data)
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 536, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 496, in _call_chain
        result = func(*args)
                 ^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 1391, in https_open
        return self.do_open(http.client.HTTPSConnection, req,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/env/lib/python3.11/urllib/request.py", line 1351, in do_open
        raise URLError(err)
    urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

---
```


### Additional information

_No response_