Repository: stable-diffusion-webui
Issue: [Bug]:SSLError(SSLCertVerificationError) 
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

after I reset to my default key chains in my preferences settings on my MacOs because of issues I was having with my App Store. I now receive a ssl error that I am unable veriify the website  to download the proper torch files needed to run the SD webui

### Steps to reproduce the problem

launching webui with --no-half

### What should have happened?

the webui should have provided a url link

### Sysinfo

Traceback (most recent call last):
  File "/Users/samhung/SDL1111/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/samhung/SDL1111/stable-diffusion-webui/launch.py", line 29, in main
    filename = launch_utils.dump_sysinfo()
  File "/Users/samhung/SDL1111/stable-diffusion-webui/modules/launch_utils.py", line 440, in dump_sysinfo
    from modules import sysinfo
  File "/Users/samhung/SDL1111/stable-diffusion-webui/modules/sysinfo.py", line 9, in <module>
    import psutil
ModuleNotFoundError: No module named 'psutil'


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

Google Chrome

### Console logs

```Shell
Sams-MacBook-Pro:stable-diffusion-webui samhung$ ./webui.sh --no-half

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on samhung user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.6 (v3.10.6:9c7b4bd164, Aug  1 2022, 17:13:48) [Clang 13.0.0 (clang-1300.0.29.30)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing torch and torchvision
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/torch/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/torch/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/torch/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/torch/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/torch/
Could not fetch URL https://pypi.org/simple/torch/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/torch/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) - skipping
ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: none)
ERROR: No matching distribution found for torch==2.0.1
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) - skipping
WARNING: There was an error checking the latest version of pip.
Traceback (most recent call last):
  File "/Users/samhung/SDL1111/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/samhung/SDL1111/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/samhung/SDL1111/stable-diffusion-webui/modules/launch_utils.py", line 352, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/Users/samhung/SDL1111/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/Users/samhung/SDL1111/stable-diffusion-webui/venv/bin/python3.10" -m pip install torch==2.0.1 torchvision==0.15.2
Error code: 1
```


### Additional information

_No response_