Commit 439a4a53 by Julien Muchembled

Load public certificates from config by default

1 parent 37b86728
......@@ -80,6 +80,8 @@ class NetworkcacheClient(object):
with open(path) as f:
self.signature_private_key = crypto.load_privatekey(crypto.FILETYPE_PEM,
f.read())
if signature_certificate_list is None:
signature_certificate_list = config.get('signature-certificate-list')
if type(signature_certificate_list) is str:
# If signature_certificate_list is a string, parse it to a list of
# certificates
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!