Security - SSL/TLS - Outgoing - CA certs

Hello
I have an API called with certificate.
to do this in fisrt step, I tried to save the certificate in zato without success
below received error:

Traceback (most recent call last):
File “/opt/zato/3.1.0/code/zato-web-admin/src/zato/admin/web/views/init.py”, line 488, in call
response = self.req.zato.client.invoke(self.service_name, self.input_dict)
File “/opt/zato/3.1.0/code/zato-web-admin/src/zato/admin/middleware.py”, line 82, in invoke
raise Exception(‘CID: {}\nDetails: {}’.format(zato_env.get(‘cid’), zato_env.get(‘details’)))
Exception: CID: b201701e8fedefb276eb82c6
Details: Traceback (most recent call last):
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/connection/http_soap/channel.py”, line 371, in dispatch
payload, worker_store, self.simple_io_config, post_data, path_info, soap_action)
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/connection/http_soap/channel.py”, line 641, in handle
params_priority=channel_item.params_pri)
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/service/init.py”, line 691, in update_handle
raise e if isinstance(e, Exception) else Exception(e)
Exception: Traceback (most recent call last):
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/service/init.py”, line 639, in update_handle
self._invoke(service, channel)
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/service/init.py”, line 529, in _invoke
service.handle()
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/service/meta.py”, line 333, in handle_impl
attrs.instance_hook(self, input, instance, attrs)
File “/opt/zato/3.1.0/code/zato-server/src/zato/server/service/internal/security/tls/ca_cert.py”, line 40, in instance_hook
instance.info = get_tls_from_payload(input.value).encode(‘utf8’)
File “/opt/zato/3.1.0/code/zato-common/src/zato/common/util/init.py”, line 1125, in validate_tls_from_payload
cert_info = sorted(dict(iteritems(cert_info.get_subject().get_components())))
File “/opt/zato/3.1.0/code/lib/python2.7/site-packages/future/utils/init.py”, line 308, in iteritems
func = obj.items
AttributeError: ‘list’ object has no attribute ‘items’

please do you have de solution

Hello @fabrice,

please upload the certificate that you are trying to import, otherwise it is impossible to reproduce this situation.

Regards.