diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-03-23 11:57:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-23 11:57:46 +0000 |
commit | 2d8221140ce7d57892e94bc87ada96a0900f9fcc (patch) | |
tree | faf5a8de164a5a8f705ce2ec628f67ce055fc515 /certService/src | |
parent | ce4f24d8bc667654f6426aa374e280a28576318c (diff) | |
parent | e7ba9426bc3e96ac5149019466b234a4b6deca17 (diff) |
Merge "Removed usage of RegTokenPwd when generating cert request"
Diffstat (limited to 'certService/src')
-rw-r--r-- | certService/src/main/java/org/onap/aaf/certservice/cmpv2client/impl/CreateCertRequest.java | 10 |
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 = |