Skip to content
Snippets Groups Projects
Commit 30bfc9eb 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 73d1350b
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ def get_certificates(self):
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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment