use custom cert discord.py code example
Example: discord ssl certificate error
1. Go to start, type internet explorer. Run as admin.
2. Go do https://discord.com click on the padlock icon next to the search bar.
3. Click view certificates
4. Click install certificates, choose either user or local machine.
5. Click Place all certificates in the following store
6. Choose Trusted Root Certification Authorities
7. Enjoy.