GithubHelp home page GithubHelp logo

akamai / cli-cps Goto Github PK

View Code? Open in Web Editor NEW
14.0 25.0 16.0 318 KB

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.

License: Apache License 2.0

Python 99.32% Makefile 0.68%
cps certificate akamai-cli devexp-cli devexp cli

cli-cps's Introduction

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/acknowledging change statuses, creating/modifying certificates, and working with third party certificates.

Local Install

  • Python 3+
  • pip install edgegrid-python

Credentials

In order to use this module, you need to:

  • Set up your credential files as described in the authorization and credentials sections of the getting started guide on developer.akamai.com.
  • When working through this process you need to give your API credential the "CPS" and "Contracts-API_Contracts" Grant.
  • By default it uses "default" section from .edgerc file.
  • To use different section from your .edgerc file pass --section <name>. E.g. for cps section pass --section cps.
[cps]
client_secret = [CLIENT_SECRET]
host = [HOST]
access_token = [ACCESS_TOKEN_HERE]
client_token = [CLIENT_TOKEN_HERE]

Functionality

Here is a summary of the current functionality:

  • List current enrollments
  • Generate an audit
  • Retrieve enrollment details in yaml or json format
  • Retrieve actual certificate details for what is deployed on the platform
  • Create an enrollment from a yaml or json file
  • Update an enrollment from a yaml or json file
  • Cancel pending enrollment changes
  • Delete live enrollments from Network
  • View and verify current change status
  • Acknowledge pre/post verification warnings
  • Acknowledge change management
  • Work with 3rd party certificates (download/upload signed csr)

akamai-cps

Main program file that wraps this functionality in a command line utility:

setup

Does a one time download of CPS enrollments and common names for faster local retrieval. This command can be run anytime and will refresh the /setup folder based on the current list of enrollments.

%  akamai cps setup

list

List all current enrollments in Akamai CPS

%  akamai cps list
%  akamai cps list --show-expiration

(--show-expiration takes a little longer as fetches production expiration date)

retrieve-enrollment

Get specific details for an enrollment and outputs the details in raw json or yaml format. Please specify either --cn or --enrollment-id

%  akamai cps retrieve-enrollment --cn sample.customer.com
%  akamai cps retrieve-enrollment --enrollment-id 12345
%  akamai cps retrieve-enrollment --cn sample.customer.com --json
%  akamai cps retrieve-enrollment --cn sample.customer.com --yaml

Here are the flags of interest (please specify either --cn or --enrollment-id):

--cn <value>                 Common name (CN) of the enrollment
--enrollment-id <value>      Enrollment id
--json                       Output in json format (Optional: will be default if nothing specified)
--yaml                       Output in yaml format (Optional)

retrieve-deployed

Get specific details for the actual certificate deployed on the Akamai platform, including leaf, chain, or summary information. Please specify either --cn or --enrollment-id and one of --leaf, --chain, or --info arguments.

%  akamai cps retrieve-deployed --cn sample.customer.com --info
%  akamai cps retrieve-deployed --enrollment-id 12345 --info --network staging
%  akamai cps retrieve-deployed --cn sample.customer.com --leaf --network production
%  akamai cps retrieve-deployed --cn sample.customer.com --chain --network staging

Here are the flags of interest (please specify either --cn or --enrollment-id):

--cn <value>                 Common name (CN) of the enrollment
--enrollment-id <value>      Enrollment id
--leaf                       Leaf certificate details
--chain                      Full chain certificate details
--info                       Summary information about deployed certificate
--network                    Either staging or production (optional: default is production)

status

Get current change status for an enrollment.

%  akamai cps status --cn sample.customer.com
%  akamai cps status --enrollment-id 12345
%  akamai cps status --enrollment-id 12345 --validation-type http (use if certificate type is DV)
%  akamai cps status --cn sample.customer.com --validation-type dns (use is certificate type is DV)

Here are the flags of interest (please specify either --cn or --enrollment-id):

--cn <value>                 Common name (CN) of the enrollment
--enrollment-id <value>      Enrollment id
--validation-type            Specify either 'http' or 'dns' (for DV certificates)

**If certificate type is third-party and CSR is ready, you may use this command to output the csr directly to a file:

%  akamai cps status --cn sample-cn.example.com > file.csr

audit

Generate an audit of all enrollments to a .xlsx, .csv, or .json file By default it generates report in csv format. Use --xlsx for xlsx Format Use --include-change-details to include current pending certificate details.

%  akamai cps audit
%  akamai cps audit --json
%  akamai cps audit --csv
%  akamai cps audit --xslx
%  akamai cps audit --output-file sample.xlsx
%  akamai cps audit --output-file sample.xlsx --include-change-details

Here are the flags of interest:

--include-change-details    will include details and Order ID of current pending certificates
--csv                       csv format (optional: if not specificed, default is .csv)
--json                      json format (optional: if not specificed, default is .csv)
--xlsx                      xslx format (optional: if not specificed, default is .csv)
--output-file <value>       Filename to be saved (optional: if not specifed, generated file will be put in audit folder).

create

Create a new certificate enrollment.

%  akamai cps create --file /templates/sample.yml
%  akamai cps create --file /templates/sample.json --force

The flags of interest are:

--file <value>                Input file in yaml or json format with the enrollment details.
--force                       If specified, will not prompt for confirmation (optional)
--allow-duplicate-cn          If specified, will allow a certificate to be created with the same CN as an existing certificate

update

Update a specified enrollment. Depending on the type of change, this may or may not trigger a new certificate deployment.

%  akamai cps update --cn test.edgekey.net --file sample.yml
%  akamai cps update --cn test.edgekey.net --file sample.json --force
%  akamai cps update --cn test.edgekey.net --file sample.json --force-renewal

The flags of interest are (please specify either --cn or --enrollment-id):

--cn <value>                 Common name (CN) of the enrollment
--enrollment-id <value>      Enrollment id
--file <value>               Input file in yaml or json format with the enrollment details.
--force                      If specified, will not prompt for confirmation (optional)
--force-renewal              If specified, force certificate renewal for enrollment (optional)

cancel

Cancel any current pending change for an enrollment. This will only delete the enrollment too if the certificate has never been deployed on the platform.

%  akamai cps cancel --cn sample.customer.com
%  akamai cps cancel --enrollment-id 12345

The flags of interest for cancel are (please specify either --cn or --enrollment-id):

--cn <value>                  Common name (CN) of the enrollment
--enrollment-id <value>       Enrollment id

proceed

If there is a pending change that requires user input, proceed accordingly

%  akamai cps proceed --cn sample.customer.com
%  akamai cps proceed --enrollment-id 12345
%  akamai cps proceed --enrollment-id 12345 --cert-file signed.csr --trust-file ca.crt --key-type rsa (use if third party certificate and ready to upload signed csr)
%  akamai cps proceed --cn sample.customer.com --cert-file signed.csr --trust-file ca.crt --key-type ecdsa (use if third party certifcate and ready to upload signed csr)

Here are the flags of interest (please specify either --cn or --enrollment-id):

--cn <value>                 Common name (CN) of the enrollment
--enrollment-id <value>      Enrollment id
--cert-file                  Signed certificate (PEM) file (for uploading third party certificates)
--trust-file                 Trust-chain (PEM) file (for uploading third party certificates)
--key-type                   RSA or ECDSA (for uploading third party certificates)

delete

Remove a certificate and enrollment from the Akamai Network. This will only delete the enrollment if the certificate has no pending changes

%  akamai cps delete --cn sample.customer.com
%  akamai cps delete --enrollment-id 12345

The flags of interest for delete are (please specify either --cn or --enrollment-id):

--cn <value>                  Common name (CN) of the enrollment
--enrollment-id <value>       Enrollment id

Contribution

By submitting a contribution (the “Contribution”) to this project, and for good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, you (the “Assignor”) irrevocably convey, transfer, and assign the Contribution to the owner of the repository (the “Assignee”), and the Assignee hereby accepts, all of your right, title, and interest in and to the Contribution along with all associated copyrights, copyright registrations, and/or applications for registration and all issuances, extensions and renewals thereof (collectively, the “Assigned Copyrights”). You also assign all of your rights of any kind whatsoever accruing under the Assigned Copyrights provided by applicable law of any jurisdiction, by international treaties and conventions and otherwise throughout the world.

Notice

Copyright 2020 – Akamai Technologies, Inc.

All works contained in this repository, excepting those explicitly otherwise labeled, are the property of Akamai Technologies, Inc.

cli-cps's People

Contributors

aalquist avatar adedommelin-ducksify avatar aetsai avatar dawiddzhafarov avatar dependabot[bot] avatar dstopka avatar majakubiec avatar mgwoj avatar mimazaka avatar rafpe avatar rajiv avatar robertolopezlopez avatar slonimskaia avatar vreddhi avatar wzagrajcz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cli-cps's Issues

improving the installation experience on python2

We should improve the installation experience for people on python 2.

$ akamai uninstall cps
Attempting to uninstall "cps" command...... [OK]

$ pyenv shell 2.7.10
$ akamai install cps
Attempting to fetch command from https://github.com/akamai/cli-cps.git...... [OK]
Installing.... panic: runtime error: index out of range

goroutine 1 [running]:
main.installPython(0xc4200cee40, 0x25, 0xc42009d000, 0x1, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/package_python.go:42 +0x6c6
main.installPackageDependencies(0xc4200cee40, 0x25, 0x0, 0xc42017ac01)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/command_install.go:128 +0xc56
main.installPackage(0xc4200cee10, 0x25, 0x0, 0x0, 0xc420183a88)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/command_install.go:98 +0x5d1
main.cmdInstall(0xc4200d8dc0, 0x0, 0xc4200d8dc0)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/command_install.go:39 +0x145
github.com/akamai/cli/vendor/github.com/urfave/cli.HandleAction(0x14fa640, 0x15e0298, 0xc4200d8dc0, 0xc4200d4500, 0x0)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/akamai/cli/vendor/github.com/urfave/cli.Command.Run(0x15bea9e, 0x7, 0x0, 0x0, 0xc4201785b0, 0x1, 0x1, 0x0, 0x0, 0x15db32f, ...)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/akamai/cli/vendor/github.com/urfave/cli.(*App).Run(0xc4200cb6c0, 0xc4200b81b0, 0x3, 0x3, 0x0, 0x0)
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/vendor/github.com/urfave/cli/app.go:255 +0x6a0
main.main()
	/private/tmp/akamai-20180507-18048-1kotjwh/cli-1.0.2/src/github.com/akamai/cli/akamai.go:43 +0xa1

Installation works fine on 3.6.5

$ akamai uninstall cps
Attempting to uninstall "cps" command...... [OK]
$ pyenv shell 3.6.5
$ akamai install cps
Attempting to fetch command from https://github.com/akamai/cli-cps.git...... [OK]
Installing...... [OK]

Installed Commands:

  auth
    Interface for Akamai Edgegrid Authentication
  config
    Manage configuration
  cps (alias: certs)
    Access Certificate Provisioning System (CPS) Information
  help
    Displays help information
  imaging (alias: img)
    An Akamai CLI package for Image Manager
  install (alias: get)
    Fetch and install packages from a Git repository.
  list
    Displays available commands
  promotional-deployment (aliases: pd, prodeploy)
    Promotional deployment for DevOps
  property
    Manage configurations for Akamai properties
  search
    Search for packages in the official Akamai CLI package repository
  uninstall
    Uninstall package containing <command>
  update
    Update one or more commands. If no command is specified, all commands are updated

See "akamai help [command]" for details.

Error using retrieve-enrollment --enrollment-id

seems there is an issue using retrieve-enrollment --enrollment-id

As you can see:

akamai cps list
+---------------+------------------------------------+------------------+---------------+-----------------------+
| Enrollment ID | Common Name (SAN Count)            | Certificate Type | *In-Progress* | Test on Staging First |
+---------------+------------------------------------+------------------+---------------+-----------------------+
| *60325*       | mjm-akamai.iwishtechdemoswere.cool | dv san           | *Yes*         | No                    |
+---------------+------------------------------------+------------------+---------------+-----------------------+

This fails

akamai cps retrieve-enrollment --enrollment-id 60325 
Traceback (most recent call last):
  File "/Users/jgarza/.akamai-cli/src/cli-cps/bin/akamai-cps", line 1293, in <module>
    status = cli()
  File "/Users/jgarza/.akamai-cli/src/cli-cps/bin/akamai-cps", line 222, in cli
    return getattr(sys.modules[__name__], args.command.replace("-", "_"))(args)
  File "/Users/jgarza/.akamai-cli/src/cli-cps/bin/akamai-cps", line 1156, in retrieve_enrollment
    ' with enrollment-id: ' + str(enrollmentId))
TypeError: must be str, not NoneType

But requesting cn works

akamai cps retrieve-enrollment --cn mjm-akamai.iwishtechdemoswere.cool
Getting details for mjm-akamai.iwishtechdemoswere.cool with enrollment-id: 60325
{
    "location": "/cps/v2/enrollments/60325",
    "ra": "lets-encrypt",
...

Unable to perform Audit on enrollments.

Not able to run audit command for CPS enrollments. Below is the error encountered:
Generating CPS audit file...
Processing 1 of 76: Common Name (CN): pub.**********.com
Processing 2 of 76: Common Name (CN): www.**********.com
Processing 3 of 76: Common Name (CN): www.**********.com
Traceback (most recent call last):
File "/Users/amrraj/.akamai-cli/src/cli-cps/bin/akamai-cps", line 1293, in
status = cli()
File "/Users/amrraj/.akamai-cli/src/cli-cps/bin/akamai-cps", line 222, in cli
return getattr(sys.modules[name], args.command.replace("-", "
"))(args)
File "/Users/amrraj/.akamai-cli/src/cli-cps/bin/akamai-cps", line 749, in audit
+ '\n')
TypeError: must be str, not NoneType_

What am I missing here?

Use of AccountSwitching is not documented in the CLI Help

All Akamai CLIs implement the accountSwitching feature in a different way. For example you can do -a in PAPI. Here the --help command do not show how it is implemented (--account-key)

Time saver for the ones who relied on the help of the code

Unable to define a section in .edgerc

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.

Unable to Execute Package Manager on Windows Machine

C:\Docs\ACS\Scripts\Certificates\Akamai-SSL-Expiration-Audit-master>akamai install cps
Attempting to fetch command from https://github.com/akamai/cli-cps.git...... [OK]
Installing...... [FAIL]
Unable to execute package manager (pip).

C:\Docs\ACS\Scripts\Certificates\Akamai-SSL-Expiration-Audit-master>AKAMAI_LOG=trace akamai install cps
'AKAMAI_LOG' is not recognized as an internal or external command,
operable program or batch file.

Software Versions:
Python 3.8.0
Node.js v12.13.0

env var AKAMAI_EDGERC_SECTION being ignored

Problem:
CPS cli does not take under consideration the env variable and prompts for section

Command run:
akamai cps retrieve-deployed --enrollment-id 6789 --info

Expected:
Results of command
Was:
Edgerc section "cps" not found

System info

[root@b4a42ffb5973 /]# akamai cps --version
akamai cps 0.1.0

[root@b4a42ffb5973 /]# echo $AKAMAI_EDGERC_SECTION
mySection

Forcing the creation of a CSR

Hello,

We use third party certificates, and our certificate provider has an intermediate certificate which expiring at the end of May.
I used cli-cps to get the YAML, I updated some necessary parameters, but that was not enough to trigger a CSR.
It would be nice to have a force CSR option when running: akamai cps update...

Please let me know if you have any questions.

Regards,
Didier

Unable to Install or Use CPS package.

This step took about 15 seconds:

$ akamai install property
Attempting to fetch command from https://github.com/akamai/cli-property.git... ... [OK]
Installing... ... [OK]

This part I let run about about an hour, and it never finished:

$ akamai install cps
Attempting to fetch command from https://github.com/akamai/cli-cps.git... ... [OK]
Installing... [==========]

When trying to run akamai cps list, I get this error

$ akamai cps list
Traceback (most recent call last):
  File "/home/<user>/.akamai-cli/src/cli-cps/bin/akamai-cps", line 20, in <module>
    from cps import cli
  File "/home/<user>/.akamai-cli/src/cli-cps/bin/cps.py", line 31, in <module>
    from akamai.edgegrid import EdgeGridAuth, EdgeRc
ModuleNotFoundError: No module named 'akamai'

Enable option to create Certificates with same CN

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'

Add more options for CSR request

We have 3rd Party Certificate. We used to get only CSR for ECDSA since we do not use Dual Stack option, and it's disabled, but, must be, something changed on the back-end, and now we get RSA+ECDSA CSR by default:

(example)

$ python3 /home/deploy/cli-cps/bin/akamai-cps status --cn '*.XXXXX.com' > /etc/letsencrypt/csr/*.XXXXX.com.csr

Getting enrollment for *.XXXXX.com with enrollment-id: 123456
Getting change status for changeId: 234567

3RD PARTY CERTIFICATE DETAILS:
Below is the CSR for RSA. Please get it signed by your desired certificate authority and then run 'proceed' to upload.

Below is the CSR for ECDSA. Please get it signed by your desired certificate authority and then run 'proceed' to upload.
...............

We need an option for akamai-cps to get only CSR for ECDSA, could you please add it?

Issue with binary

I seem to have all the pre-reqs, but for this package I get the following

# akamai cps setup
  File "/root/.akamai-cli/src/cli-cps/bin/akamai-cps", line 240
    **arg,

Incorrect reference to [cps] section

Minor issue

$ akamai cps setup --section papi_ion
Trying to get contract details from [cps] section of ~/.edgerc file

Clearly I am using a different section than [cps]

acme challenge dns hostname incorrect

when looking at a pending change on a DV certificate:
akamai cps status --enrollment-id 12345 --validation-type dns

the acme challenge instructions are incorrect and should be listed as:

DNS Query: dig TXT _acme-challenge.<domain>
Expected Result: _acme-challenge.<domain> 7200 IN TXT <response body>

_acme-challenge should have a - and not an _

jsonpatch not in requirements.txt

akamai cps list
Traceback (most recent call last):
File "/Users/hdebeij/.akamai-cli/src/cli-cps/bin/akamai-cps", line 35, in
import jsonpatch
ModuleNotFoundError: No module named 'jsonpatch'

Reason is that the requirements.txt does not contain the reference

Unable to Run "akamai cps <command>"

No matter what I do, I get an error when attempting to use cli-cps.

Executing akamai cps setup or akamai cps list or anything results in:

Traceback (most recent call last):
  File "/home/vicel005/.akamai-cli/src/cli-cps/bin/akamai-cps", line 20, in <module>
    from cps import cli
  File "/home/vicel005/.akamai-cli/src/cli-cps/bin/cps.py", line 33, in <module>
    from prettytable import PrettyTable
ModuleNotFoundError: No module named 'prettytable'

I also tried installing the cli-cps module under root, and get the same things:

Traceback (most recent call last):
  File "/root/.akamai-cli/src/cli-cps/bin/akamai-cps", line 20, in <module>
    from cps import cli
  File "/root/.akamai-cli/src/cli-cps/bin/cps.py", line 33, in <module>
    from prettytable import PrettyTable
ModuleNotFoundError: No module named 'prettytable'

retrieve-enrollment no longer includes the "id"

A recent update appears to have removed the "id" value in favour of a non-json message.

# akamai cps retrieve-enrollment --cn drtest3a.com.mands.uk --json
Getting details for drtest3a.com.mands.uk with enrollment-id: 208027
{
    "location": "/cps/v2/enrollments/208027",
    "ra": "lets-encrypt",
    "validationType": "dv",

This has two effects

  1. The returned value is no longer valid json, even when the --json flag is used
  2. The enrollment ID can no longer be found in the json part of the response

Feature Req: Section Selector

To align with the other akamai-cli integrations it would make sense to support the section selector
ie. available in the property manager module (pm)

-s, --section <section>               Section name representing Client ID in .edgerc file, defaults to "credentials"

Actually there has to be a "cps" section within the edgerc credentials file.
rather than having this one, i'd prefer to only have a default section and "point" cps towards it.

can not install to mac

When I try to install to mac, it was not running.

$ akamai install  cps
Attempting to fetch command from https://github.com/akamai/cli-cps.git...... [OK]
Installing...... [FAIL]
Unable to run package manager: exit status 1

DXE-1103 bug report env variable AKAMAI_EDGERC_ACCOUNT_KEY

The AKAMAI_EDGERC_ACCOUNT_KEY shell environment variable was recognized but transformed into the wrong argument.

The correct one should be "account-key". It's missing the hyphen.

$ export AKAMAI_EDGERC_ACCOUNT_KEY=F-AC-1234567
$ akamai cps list
usage: akamai cps [--version] ...
akamai cps: error: unrecognized arguments: --accountkey F-AC-1234567

Syntax error running help

Installation succeeds, but akamai help cps throws a parse error:

$ akamai help cps
Traceback (most recent call last):
  File "/Users/ehughes/.akamai-cli/src/cli-cps/bin/akamai-cps", line 20, in <module>
    from cps import cli
  File "/Users/ehughes/.akamai-cli/src/cli-cps/bin/cps.py", line 267
    **arg,
         ^
SyntaxError: invalid syntax

I have python 3 installed. The install said it succeeded:

$ akamai install cps
Attempting to fetch command from https://github.com/akamai/cli-cps.git...... [OK]
Installing...... [OK]

Installed Commands:

  auth
    Interface for Akamai Edgegrid Authentication
  config
    Manage configuration
  cps (alias: certs)
    Access Certificate Provisioning System (CPS) Information
  help
    Displays help information
  install (alias: get)
    Fetch and install packages from a Git repository.
  list
    Displays available commands
  property
    Manage configurations for Akamai properties
  search
    Search for packages in the official Akamai CLI package repository
  uninstall
    Uninstall package containing <command>
  update
    Update one or more commands. If no command is specified, all commands are updated

See "akamai help [command]" for details.

RequestsDependencyWarning: urllib3 and chardet

On a fresh install :

$  akamai cps
/root/.akamai-cli/src/cli-cps/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (3.0.4) doesn't match a supported version!

YAMLLoadWarning: calling yaml.load() without Loader

Hello,

I am getting the following warning:

$ akamai cps update --cn cert.example.com --file ~/cert.example.com.yaml
/home/fortdg/.akamai-cli/src/cli-cps/bin/cps.py:1534: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  jsonFormattedContent = yaml.load(file_content)
/home/fortdg/.akamai-cli/src/cli-cps/bin/cps.py:1536: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  yaml.load(file_content), indent=2)
/home/fortdg/.akamai-cli/src/cli-cps/bin/cps.py:1537: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  certificateContent = yaml.load(file_content)

You are about to update enrollment-id:

Regards,
Didier

DXE-1888 Update .edgerc default from cps to default

Currently the CPS CLI package is accepting a default value of cps section in your .edgerc file. Can this be updated to 'default'? This is creating additional overhead for anyone to create a standalone cps block and can be confusing for those unaware that .edgerc files work with multiple sections/blocks.

Other CLI packages all use default, but CPS always throws me off and I have to supply --section default for it.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.