Commit dc9c305d authored by Łukasz Nowak's avatar Łukasz Nowak

- implement server side getComputerPartitionCertificate


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42572 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3bf26435
...@@ -151,6 +151,17 @@ class SlapTool(BaseTool): ...@@ -151,6 +151,17 @@ class SlapTool(BaseTool):
self._convertToSlapPartition(slave_partition_document, computer_id)) self._convertToSlapPartition(slave_partition_document, computer_id))
return xml_marshaller.xml_marshaller.dumps(slap_computer) return xml_marshaller.xml_marshaller.dumps(slap_computer)
security.declareProtected(Permissions.AccessContentsInformation, 'getComputerPartitionCertificate')
def getComputerPartitionCertificate(self, computer_id, computer_partition_id):
self.REQUEST.response.setHeader('Content-Type', 'text/xml')
software_instance = self._getSoftwareInstanceForComputerPartition(
computer_id, computer_partition_id)
certificate_dict = dict(
key=software_instance.getSslKey(),
certificate=software_instance.getSslCertificate()
)
return xml_marshaller.xml_marshaller.dumps(certificate_dict)
#################################################### ####################################################
# Public POST methods # Public POST methods
#################################################### ####################################################
......
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