aws-connected-device-framework icon indicating copy to clipboard operation
aws-connected-device-framework copied to clipboard

bulkcerts's list generator creates duplicated CommonNames without regard to multiple specified comman names.

Open komushi opened this issue 3 years ago • 0 comments

Aws Connected Device Framework Affected Module(s):

bulkcerts

I'm submitting a ...

  • [x] bug report
  • [ ] feature request

Description:

bulkcerts's list generator creates duplicated CommonNames without regard to multiple elements specified in the commanNameList parameter.

Current behavior:

All the generated certificates share the same CommonName based on the first element in the commanNameList parameter.

Expected behavior:

Each of the generated certificate has its own CommonName based on each element in the commanNameList parameter.

Steps to reproduce:

POST {{baseUrl}}/supplier/:supplierId/certificates

:supplierId is registered as 'AwsIotDefault'

{ "quantity": 3, "certInfo": { "commonName": "templateFoo::${list}" , "commonNameList":["AB1CD79EF1","AB1CD79EF2","AB1CD79EF3"], } }

All the CN values are same - dGVtcGxhdGVGb286OkFCMUNENzlFRjE which is the encoded value of 'templateFoo::AB1CD79EF1'.

Additional Information:

komushi avatar Mar 23 '22 02:03 komushi