aboutsummaryrefslogtreecommitdiffstats
path: root/certService/src
diff options
context:
space:
mode:
authorMichal Banka <michal.banka@nokia.com>2020-03-20 16:51:04 +0100
committerMichal Banka <michal.banka@nokia.com>2020-03-20 16:51:14 +0100
commite7ba9426bc3e96ac5149019466b234a4b6deca17 (patch)
tree661773ad31e1105ea182be8a66fa3673d7823e17 /certService/src
parent4b65b3c32da416ebfecb7eac808d76d89ae4b2a8 (diff)
Removed usage of RegTokenPwd when generating cert request
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I94069e1ab6ac63191f86746763596d5897e9b31f Issue-ID: AAF-1107
Diffstat (limited to 'certService/src')
-rw-r--r--certService/src/main/java/org/onap/aaf/certservice/cmpv2client/impl/CreateCertRequest.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/impl/CreateCertRequest.java b/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/impl/CreateCertRequest.java
index 687c47d1..74380d84 100644
--- a/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/impl/CreateCertRequest.java
+++ b/certService/src/main/java/org/onap/aaf/certservice/cmpv2client/impl/CreateCertRequest.java
@@ -28,12 +28,9 @@ import java.security.KeyPair;
import java.util.Date;
import java.util.List;
-import org.bouncycastle.asn1.DERUTF8String;
import org.bouncycastle.asn1.cmp.PKIBody;
import org.bouncycastle.asn1.cmp.PKIHeader;
import org.bouncycastle.asn1.cmp.PKIMessage;
-import org.bouncycastle.asn1.crmf.AttributeTypeAndValue;
-import org.bouncycastle.asn1.crmf.CRMFObjectIdentifiers;
import org.bouncycastle.asn1.crmf.CertReqMessages;
import org.bouncycastle.asn1.crmf.CertReqMsg;
import org.bouncycastle.asn1.crmf.CertRequest;
@@ -114,12 +111,7 @@ class CreateCertRequest {
final ProofOfPossession proofOfPossession =
CmpMessageHelper.generateProofOfPossession(certRequest, subjectKeyPair);
- final AttributeTypeAndValue[] attrTypeVal = {
- new AttributeTypeAndValue(
- CRMFObjectIdentifiers.id_regCtrl_regToken, new DERUTF8String(initAuthPassword))
- };
-
- final CertReqMsg certReqMsg = new CertReqMsg(certRequest, proofOfPossession, attrTypeVal);
+ final CertReqMsg certReqMsg = new CertReqMsg(certRequest, proofOfPossession, null);
final CertReqMessages certReqMessages = new CertReqMessages(certReqMsg);
final PKIHeader pkiHeader =