z3xt5r

Untitled

Sep 21st, 2021
555
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import ssl
  2. import requests
  3. import urllib3
  4. http = urllib3.PoolManager()
  5.  
  6. hostname = 'codesignsecureapi.encryptionconsulting.com'
  7. port = 443
  8.  
  9. f = open('cert.der', 'wb')
  10. cert = ssl.get_server_certificate((hostname, port))
  11. f.write(ssl.PEM_cert_to_DER_cert(cert))
  12. # requests.get('https://codesignsecurec.encryptionconsulting.com',
  13. #              verify=False)
  14.  
  15. http.request("GET", "https://codesignsecureapi.encryptionconsulting.com")
  16.  
RAW Paste Data