Skip to content
Snippets Groups Projects
Commit f63c941b authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Configuration key normalization

parent 7af9a781
Branches
Tags
No related merge requests found
...@@ -49,7 +49,7 @@ class EjbcaClient(object): ...@@ -49,7 +49,7 @@ class EjbcaClient(object):
@name.setter @name.setter
def name(self, new): def name(self, new):
self.ejbca_data["username"] = new + self.registry.username_suffix self.ejbca_data["username"] = new + self.registry.username_suffix
self.ejbca_data["subjectDN"] = self.registry.subjectDN_template % new self.ejbca_data["subjectDN"] = self.registry.subject_dn_template % new
@property @property
def status(self): def status(self):
...@@ -126,9 +126,9 @@ class EjbcaRegistry(object): ...@@ -126,9 +126,9 @@ class EjbcaRegistry(object):
if user: if user:
raise LookupError("Client %s already exists" % name) raise LookupError("Client %s already exists" % name)
new_ejbca_data = dict( new_ejbca_data = dict(
ca_name=self.ca_name, caName=self.ca_name,
certificate_profile_name=self.certificate_profile_name, certificateProfileName=self.certificate_profile_name,
end_entity_profile_name=self.end_entity_profile_name, endEntityProfileName=self.end_entity_profile_name,
keyRecoverable=False, keyRecoverable=False,
sendNotification=False, sendNotification=False,
status=ejbcaws.STATUS_INITIALIZED, status=ejbcaws.STATUS_INITIALIZED,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment