Commit 1dc1205c authored by Tom Niget's avatar Tom Niget

Fix file open in binary

parent 0d733b4c
...@@ -5,7 +5,7 @@ if 're6st' not in sys.modules: ...@@ -5,7 +5,7 @@ if 're6st' not in sys.modules:
from re6st import utils, x509 from re6st import utils, x509
from OpenSSL import crypto from OpenSSL import crypto
with open("/etc/re6stnet/ca.crt") as f: with open("/etc/re6stnet/ca.crt", "rb") as f:
ca = crypto.load_certificate(crypto.FILETYPE_PEM, f.read()) ca = crypto.load_certificate(crypto.FILETYPE_PEM, f.read())
network = x509.networkFromCa(ca) network = x509.networkFromCa(ca)
......
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