summaryrefslogtreecommitdiffstats
path: root/auth/auth-certman/src/main
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-09-19 06:59:20 -0500
committerInstrumental <jonathan.gathman@att.com>2018-09-19 06:59:31 -0500
commit413480483ae4dbbeb34b454ffc164f81867b4a9c (patch)
tree798b3febd13d8bfcc8a46fe61e588ca0499881b7 /auth/auth-certman/src/main
parente66b95f220bbef1efeaee337749f91e7b15b1fd7 (diff)
Update to new Oparent
Issue-ID: AAF-509 Change-Id: Ic9235812d4a396fdc86a4938b626805c22773c00 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-certman/src/main')
-rw-r--r--auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/LocalCA.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/LocalCA.java b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/LocalCA.java
index 2a3ce537..da634868 100644
--- a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/LocalCA.java
+++ b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/LocalCA.java
@@ -82,7 +82,6 @@ public class LocalCA extends CA {
private final PrivateKey caKey;
private final X500Name issuer;
- private final SecureRandom random = new SecureRandom();
private BigInteger serial;
private final X509ChainWithIssuer x509cwi; // "Cert" is CACert
@@ -90,7 +89,7 @@ public class LocalCA extends CA {
public LocalCA(Access access, final String name, final String env, final String[][] params) throws IOException, CertException {
super(access, name, env);
- serial = new BigInteger(64,random);
+ serial = new BigInteger(64,new SecureRandom());
if (params.length<1 || params[0].length<2) {
throw new IOException("LocalCA expects cm_ca.<ca name>=org.onap.aaf.auth.cm.ca.LocalCA,<full path to key file>[;<Full Path to Trust Chain, ending with actual CA>]+");