79128030

Date: 2024-10-26 07:48:10
Score: 2
Natty:
Report link
import ssl, hashlib

cert = ssl.get_server_certificate(('my_server_url', my_server_port))

pem_cert = ssl.PEM_cert_to_DER_cert(cert)
sha1_fingerprint = hashlib.sha1(pem_cert).hexdigest()
print(sha1_fingerprint)

Thank you so much!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mannu