diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2014-10-06 12:20:42 -0400 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2014-10-09 17:08:11 -0400 |
| commit | 27e27f8b63bc4c45d25a8bc5e07ac3a8e199565e (patch) | |
| tree | 5a698f3a56885336a29128b12db9fa0fa2e1a222 /base/common/src/com | |
| parent | 72bad14bb14e16455874fd8c38913a7ccca407e2 (diff) | |
Added CLI to import/export certificates with private keys.
New CLI commands have been added to import/export certificates and
private keys into/from the client security database. The CLI can
also be used to generate the file needed by Python client library
for client certificate authentication.
Diffstat (limited to 'base/common/src/com')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/client/PKIClient.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/client/PKIClient.java b/base/common/src/com/netscape/certsrv/client/PKIClient.java index c23e8b600..e06b4db54 100644 --- a/base/common/src/com/netscape/certsrv/client/PKIClient.java +++ b/base/common/src/com/netscape/certsrv/client/PKIClient.java @@ -104,6 +104,12 @@ public class PKIClient { this.verbose = verbose; } + public X509Certificate getCert(String nickname) + throws NotInitializedException, ObjectNotFoundException, TokenException { + CryptoManager manager = CryptoManager.getInstance(); + return manager.findCertByNickname(nickname); + } + public X509Certificate[] getCerts() throws NotInitializedException { CryptoManager manager = CryptoManager.getInstance(); return manager.getPermCerts(); |
