From 413480483ae4dbbeb34b454ffc164f81867b4a9c Mon Sep 17 00:00:00 2001 From: Instrumental Date: Wed, 19 Sep 2018 06:59:20 -0500 Subject: Update to new Oparent Issue-ID: AAF-509 Change-Id: Ic9235812d4a396fdc86a4938b626805c22773c00 Signed-off-by: Instrumental --- auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/LocalCA.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'auth/auth-certman/src/main/java/org/onap') 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.=org.onap.aaf.auth.cm.ca.LocalCA,[;]+"); -- cgit 1.2.3-korg