diff options
| author | Jack Magne <jmagne@dhcp-16-206.sjc.redhat.com> | 2016-07-27 11:43:33 -0700 |
|---|---|---|
| committer | Jack Magne <jmagne@dhcp-16-206.sjc.redhat.com> | 2016-07-27 14:20:28 -0700 |
| commit | 0c502a387c90d2e2d8ebe9e3edf3dfeaf1d6eba4 (patch) | |
| tree | 62e72cf687ff481eee1e421d5fc51e79a7f716e9 /base/common/src/com | |
| parent | 39b049e2048ba440c2885f4249bedd428fd250b1 (diff) | |
Make starting CRL Number configurable.
Ticket #2406 Make starting CRL Number configurable
This simple patch provides a pkispawn config param that passes
some starting crl number value to the config process.
Here is a sample:
[CA]
pki_ca_starting_crl_number=4000
After the CA comes up the value of "crlNumber" in the db will
reflect that value of 4000.
Currently no other values are changed. We can talk about if we
need more values reset in the given case.
Also, this creates a setting in the CS.cfg
ca.crl.MasterCrl.startingCrlNumber=4000
This setting is only consulted when the crl Issuing Point record is created
for the first time.
Diffstat (limited to 'base/common/src/com')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java index 890f7d01f..cd9d3c8ba 100644 --- a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java +++ b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java @@ -234,6 +234,9 @@ public class ConfigurationRequest { @XmlElement protected String sharedDBUserDN; + @XmlElement + protected String startingCRLNumber; + public ConfigurationRequest() { // required for JAXB } @@ -932,6 +935,14 @@ public class ConfigurationRequest { this.subordinateSecurityDomainName = subordinateSecurityDomainName; } + public String getStartingCRLNumber() { + return startingCRLNumber; + } + + public void setStartingCRLNumber(String startingCRLNumber) { + this.startingCRLNumber = startingCRLNumber; + } + @Override public String toString() { return "ConfigurationRequest [pin=XXXX" + @@ -995,6 +1006,7 @@ public class ConfigurationRequest { ", setupReplication=" + setupReplication + ", subordinateSecurityDomainName=" + subordinateSecurityDomainName + ", reindexData=" + reindexData + + ", startingCrlNumber=" + startingCRLNumber + "]"; } |
