Commit 439a4a53 authored by Julien Muchembled's avatar Julien Muchembled

Load public certificates from config by default

parent 37b86728
...@@ -80,6 +80,8 @@ class NetworkcacheClient(object): ...@@ -80,6 +80,8 @@ class NetworkcacheClient(object):
with open(path) as f: with open(path) as f:
self.signature_private_key = crypto.load_privatekey(crypto.FILETYPE_PEM, self.signature_private_key = crypto.load_privatekey(crypto.FILETYPE_PEM,
f.read()) f.read())
if signature_certificate_list is None:
signature_certificate_list = config.get('signature-certificate-list')
if type(signature_certificate_list) is str: if type(signature_certificate_list) is str:
# If signature_certificate_list is a string, parse it to a list of # If signature_certificate_list is a string, parse it to a list of
# certificates # certificates
......
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