summaryrefslogtreecommitdiffstats
path: root/certService
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-03-23 11:57:46 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-23 11:57:46 +0000
commit2d8221140ce7d57892e94bc87ada96a0900f9fcc (patch)
treefaf5a8de164a5a8f705ce2ec628f67ce055fc515 /certService
parentce4f24d8bc667654f6426aa374e280a28576318c (diff)
parente7ba9426bc3e96ac5149019466b234a4b6deca17 (diff)
Merge "Removed usage of RegTokenPwd when generating cert request"
Diffstat (limited to 'certService')
-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 =