Commit ad0ef193 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

CertStore: Add cert to cache on add_certificate()

Otherwise the cert is only available after a restart

Fixes #10160
parent 644b4374
......@@ -62,6 +62,7 @@ class CertificateStore:
def add_certificate(self, certificate):
log.info('Add certificate to trust store')
self._certs.append(certificate)
pem = certificate.props.certificate_pem
path = self._get_random_path()
write_file_async(path,
......
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