Commit 1e04c650 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_certificate_authority: boostrap if user certificate isnt updated

parent d64d9cad
......@@ -67,6 +67,10 @@ class CaucaseConnector(XMLObject):
return CaucaseClient(ca_url=ca_url, **kw)
def _getAuthenticatedConnection(self):
if self.getUserCertificate() is None:
if self.hasUserCertificateRequestReference():
self._bootstrapCaucaseConfiguration()
if self.getUserCertificate() is None:
raise ValueError("You need to set the User Key and Certificate!")
......
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