PKI Client Python API
This document introduces what is available in the PKI ReST interface and how to use it. It provides information about the resources available, authentication mechanisms etc.
The versioning scheme to be followed is documented here.
Note: The code snippets provided are part of the python binding for ReST interface.
connection = PKIConnection(uri='https://localhost:8443')
The PKIConnection class in base/common/python/pki/client.py stores the connection details and the authentication parameters. It also manages the session variables. A basic authentication using the username/password or a client certificate authentication can be used to access the resources. These can be specified while creating the connection object in the client.
connection = PKIConnection() connection.authenticate('AgentX','XXXXXXX') connection.set_authentication_cert(<path to the PEM file>)
accountClient = AccountClient(connection) accountClient.login()
securityDomainClient = pki.system.SecurityDomainClient(connection) securityDomainInfo = securityDomainClient.getSecurityDomainInfo()
This API provides resources such as certs, users, groups, keys, keyrequests etc. for the clients to access. The following sections provide information about a few resources and how the clients can access them.
CA Client API
KRA Client API
- PKI KRA Client Python API
- PKI Key Client Python API
- PKI Key Request Client Python API
- Python Key Client