#1040 Unable to get transport cert via Python API
Closed: Fixed None Opened 9 years ago by edewata.

The Python API provides an interface to get the transport cert:

systemCertClient = pki.systemcert.SystemCertClient(conn)
transportCert = systemCertClient.get_transport_cert()

However, it's generating an error:

('URL: ', 'https://localhost:8443/kra/rest/config/cert/transport')
Traceback (most recent call last):
  File "./test.sh", line 26, in <module>
    transportCert = systemCertClient.get_transport_cert()
  File "/usr/lib/python2.7/site-packages/pki/__init__.py", line 253, in handler
    return fn_call(inst, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pki/systemcert.py", line 48, in get_transport_cert
    cert_data = CertData.from_json(response.json())
  File "/usr/lib/python2.7/site-packages/pki/cert.py", line 51, in from_json
    cert_data.issuer_dn = attr_list['IssuerDN']
KeyError: 'IssuerDN'

Proposed milestone: 10.2 June


Proposed Milestone per CS/DS meeting of 6/23/2014: 10.2 (June)

Fixed in 700caa5fcc213a2f5768a6142a5d71380e81a467. A similar patch will be submitted for ProfileClient. but this issue is fixed.

Metadata Update from @edewata:
- Issue assigned to kaskahn
- Issue set to the milestone: 10.2 - 06/14 (June)

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1605

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata