diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2014-05-02 17:35:48 -0400 |
---|---|---|
committer | Abhishek Koneru <akoneru@redhat.com> | 2014-05-29 11:13:32 -0400 |
commit | b4e89529c9a93510433190bbe2a72bb380545512 (patch) | |
tree | 10c1d60a0318125d78092a9dab8c08e0815884fe /base/common/python/pki/client.py | |
parent | 989e5d3c4ce2b77d8612094d6d95b59d75d04637 (diff) | |
download | pki-b4e89529c9a93510433190bbe2a72bb380545512.tar.gz pki-b4e89529c9a93510433190bbe2a72bb380545512.tar.xz pki-b4e89529c9a93510433190bbe2a72bb380545512.zip |
Implemented CertResource methods in CertClient on the python side.
The methods currently implemented in the CertClient are:
get_cert(), review_cert(), list_certs(), revoke_cert(),
revoke_ca_cert(), hold_cert(), unrevoke_cert()
Also included some test code in main method.
Diffstat (limited to 'base/common/python/pki/client.py')
-rw-r--r-- | base/common/python/pki/client.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/common/python/pki/client.py b/base/common/python/pki/client.py index c95cb2927..d816053a6 100644 --- a/base/common/python/pki/client.py +++ b/base/common/python/pki/client.py @@ -54,12 +54,13 @@ class PKIConnection: raise Exception("No path for the certificate specified.") self.session.cert = pem_cert_path - def get(self, path, headers=None, params=None): + def get(self, path, headers=None, params=None, payload=None): r = self.session.get( self.serverURI + path, verify=False, headers=headers, - params=params) + params=params, + data=payload) r.raise_for_status() return r |