Commit 15f3d441 authored by Benjamin Graillot's avatar Benjamin Graillot

[check_cert.py] str -> bytes

parent b346b65c
......@@ -103,9 +103,9 @@ else:
smtp = socket.socket()
smtp.connect((host, port))
resp = smtp.recv(4096)
smtp.send("EHLO localhost\n")
smtp.send(b"EHLO localhost\n")
resp = smtp.recv(4096)
smtp.send("STARTTLS\n")
smtp.send(b"STARTTLS\n")
resp = smtp.recv(4096)
smtp = ssl.wrap_socket(smtp, cert_reqs=ssl.CERT_REQUIRED, ca_certs="/etc/ssl/certs/ca-certificates.crt")
cert = smtp.getpeercert()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment