Commit 669df364 authored by Tom Niget's avatar Tom Niget Committed by Tom Niget

wip: open file in binary mode

parent 7df9e0ca
...@@ -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