summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
Diffstat (limited to 'base/common')
-rw-r--r--base/common/python/pki/nssdb.py16
-rw-r--r--base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java32
2 files changed, 37 insertions, 11 deletions
diff --git a/base/common/python/pki/nssdb.py b/base/common/python/pki/nssdb.py
index 219d824fd..3b34805b1 100644
--- a/base/common/python/pki/nssdb.py
+++ b/base/common/python/pki/nssdb.py
@@ -489,14 +489,20 @@ class NSSDatabase(object):
raise Exception('Missing PKCS #12 password')
cmd = [
- 'pk12util',
+ 'pki',
'-d', self.directory,
- '-h', self.token,
- '-k', self.password_file,
- '-i', pkcs12_file,
- '-w', password_file
+ '-C', self.password_file
]
+ if self.token and self.token != 'internal':
+ cmd.extend(['--token', self.token])
+
+ cmd.extend([
+ 'pkcs12-import',
+ '--pkcs12', pkcs12_file,
+ '--pkcs12-password-file', password_file
+ ])
+
subprocess.check_call(cmd)
finally:
diff --git a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java
index 8c9da6f37..890f7d01f 100644
--- a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java
+++ b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java
@@ -133,6 +133,9 @@ public class ConfigurationRequest {
protected String reindexData;
@XmlElement
+ protected Boolean systemCertsImported;
+
+ @XmlElement
protected List<SystemCertData> systemCerts;
@XmlElement
@@ -559,21 +562,37 @@ public class ConfigurationRequest {
/**
*
- * @return systemCerts
+ * @return systemCertsImported
*/
- public List<SystemCertData> getSystemCerts() {
- return systemCerts;
+ public Boolean getSystemCertsImported() {
+ return systemCertsImported;
}
/**
*
- * @param systemCerts
+ * @param systemCertsImported
*/
- public void setSystemCerts(List<SystemCertData> systemCerts) {
- this.systemCerts = systemCerts;
+ public void setSystemCertsImported(Boolean systemCertsImported) {
+ this.systemCertsImported = systemCertsImported;
}
/**
+ *
+ * @return systemCerts
+ */
+ public List<SystemCertData> getSystemCerts() {
+ return systemCerts;
+ }
+
+ /**
+ *
+ * @param systemCerts
+ */
+ public void setSystemCerts(List<SystemCertData> systemCerts) {
+ this.systemCerts = systemCerts;
+ }
+
+ /**
* @return the issuingCA
*/
public String getIssuingCA() {
@@ -940,6 +959,7 @@ public class ConfigurationRequest {
", masterReplicationPort=" + masterReplicationPort +
", cloneReplicationPort=" + cloneReplicationPort +
", replicationSecurity=" + replicationSecurity +
+ ", systemCertsImported=" + systemCertsImported +
", systemCerts=" + systemCerts +
", issuingCA=" + issuingCA +
", backupKeys=" + backupKeys +