-
Notifications
You must be signed in to change notification settings - Fork 137
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()
accountClient.logout()
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.
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |