akamai / cli-cps

Provides a way to interact with the Akamai Certificate Provisioning System (CPS) via Open APIs. Provides various functionality such as viewing certificate details, generating audits, checking change statuses, and creating/modifying certificates.
Apache License 2.0
14 stars 16 forks source link

Enable option to create Certificates with same CN #22

Closed santosh-akamai closed 5 years ago

santosh-akamai commented 5 years ago

The CPI API allows the user to create a certificate with same CN. In order, to do the same in CLI the cpsAPIWraper.py has to be updated to include '&allow-duplicate-cn=true' argument for create_enrollment_url. The example of the required action is below.

From: create_enrollment_url = 'https://' + self.access_hostname + \ '/cps/v2/enrollments?contractId=' + contractId

To: create_enrollment_url = 'https://' + self.access_hostname + \ '/cps/v2/enrollments?contractId=' + contractId + '&allow-duplicate-cn=true'

vreddhi commented 5 years ago

New version 1.0.6 has the enhancement implemented.