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

Unable to define a section in .edgerc #17

Closed hamai8CC closed 5 years ago

hamai8CC commented 5 years ago

I am running akamai cps --version akamai cps 0.1.0

When I have an .edgerc file with multiple sections and try to pass my "cps" section, I get the following: akamai cps setup --section cps Unknown error occurred trying to read edgerc file (/Users/{myLDAPLogin}.edgerc)

When I rename that .edgerc file to .edgercALL and create an .edgerc file with only one section (cps), it runs fine.

vreddhi commented 5 years ago

Looks like your original .edgerc file is corrupted. You may add another section manually in the new file and confirm. Let me know whether that is the root cause.

vreddhi commented 5 years ago

@hamai8CC Were you able to get this working? Can we close this issue?

hamai8CC commented 5 years ago

Yes, this can be closed. I did as you suggested, where there were 2 credentials listed, was able to pass a specified section and it worked fine. Thank-you.