I am new to python and ssl. I need a sample website from the server with SSL certificate authority(crt file), key file & certificate to test my code. I know that i want to create a website and publish it and get key and crt file. but it is a bit larger process. So Where i can get that kind of freely available websites for testing purposes. I know that every https website has a ssl certificate. The browser validates the crt files stored in the cerficates folder in firefox. In my code, i want to check the certificate of the custom website from the custom path apart from certificates folder using python. how can i make that possible. Any suggestions welcome.
Needed:
Sample Website
Certificate Authority
Key file
Pem file
Here's my sample code:
import requests
requests.get("https://smackcoders.com", verify = '/etc/ssl/certs/ca-certificates.crt')
Aucun commentaire:
Enregistrer un commentaire