From e7ba9426bc3e96ac5149019466b234a4b6deca17 Mon Sep 17 00:00:00 2001 From: Michal Banka Date: Fri, 20 Mar 2020 16:51:04 +0100 Subject: Removed usage of RegTokenPwd when generating cert request Signed-off-by: Michal Banka Change-Id: I94069e1ab6ac63191f86746763596d5897e9b31f Issue-ID: AAF-1107 --- .../aaf/certservice/cmpv2client/impl/CreateCertRequest.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'certService/src') 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 = -- cgit 1.2.3-korg