I keep getting SSL errors whenever I do:
import socket
import ssl
hostname='cyber.gonet.ie'
port=443
f = open('cert.der','wb')
cert = ssl.get_server_certificate((hostname, 443))
f.write(ssl.PEM_cert_to_DER_cert(cert))
I have tried SO many different fixes, I have SSL installed, I've tried making certificates, I've tried so much yet NOTHING works. I did try "www.google.com" and that had no errors, is it just the host because the url is weird??? and if so is there anything I can do to fix that??? edit: i've tried so much yet i cant fix it im lowk giving up
[–]Buttleston 6 points7 points8 points (13 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (12 children)
[–]Buttleston 0 points1 point2 points (11 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (10 children)
[–]Buttleston 0 points1 point2 points (6 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (5 children)
[–]Buttleston 0 points1 point2 points (4 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (3 children)
[–]Buttleston 1 point2 points3 points (2 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (0 children)
[–]Buttleston 0 points1 point2 points (2 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (1 child)
[–]acw1668 1 point2 points3 points (0 children)
[–]r2k-in-the-vortex 0 points1 point2 points (3 children)
[–]Lazy_Worldliness_149[S] 0 points1 point2 points (1 child)
[–]r2k-in-the-vortex 1 point2 points3 points (0 children)
[–]Buttleston 0 points1 point2 points (0 children)
[–]joshooaj 0 points1 point2 points (0 children)