Skip to content

Named cert import states that the cert already exists instead of importing the updated cert #22

@clintsimmons

Description

@clintsimmons

Running this: New-Pfa2Certificate -Certificate $cert1 -IntermediateCertificate $cert2 -Key $key -Passphrase $pp --Name management
results in error:
New-Pfa2Certificate: Certificate exists (), https://arrayname/api/2.17/certificates?names=management (POST)
Expected result: new CA certificate imports and overwrites existing CA certificate (both for updating old cert or moving from self-signed to CA signed).

Also, if attempting to update without using the name parameter it does not tell you which parameter is missing:
New-Pfa2Certificate: Missing or invalid parameter. (), https://arrayname/api/2.17/certificates (POST)
Expected result: Error plus listing the parameter that was expected.

Utilizing CLI method directly works, although cannot use it via the SDK2 since it is interactive:
@purearray> purecert setattr management --certificate --intermediate-certificate --key --passphrase

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions