Currently the SystemCertClient.get_transport_cert() in the Python client library returns the transport certificate in PEM format which needs to parsed and decoded before it can be used in other operations. This makes the library more difficult to use because the client code will be more cryptic and could be error prone.
systemCertClient = pki.systemcert.SystemCertClient(connection) transport_pem = systemCertClient.get_transport_cert() transport_b64 = transport_pem[len(pki.CERT_HEADER):len(transport_pem) - len(pki.CERT_FOOTER)] transport_crt = base64.decodestring(transport_b64) crypto.import_cert(nickname, transport_crt, "u,u,u")
To simplify the usage, the Python library should have parsed and decoded the transport certificate before returning it to the client.
systemCertClient = pki.systemcert.SystemCertClient(connection) transport_crt = systemCertClient.get_transport_cert() crypto.import_cert(nickname, transport_crt, "u,u,u")
Proposed milestone: 10.2 (July)
master: 45931f980d6cea073f9f7899bdea7f0f15ffa61c
Metadata Update from @edewata: - Issue assigned to edewata - Issue set to the milestone: 10.2 - 07/14 (July)
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/1627
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.