Skip to content

aws acm export-certificate --passphrase does not accept plain text value in v2 #10153

@odormond

Description

@odormond

Describe the bug

Providing a passphrase in clear text to aws acm export-certificate no longer works in v2. One has to base64 encoded it instead despite the documentation not mentioning this change.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

I'm expecting a JSON document with the certificate, certificate chain and private key as with the aws-cli v1.

Current Behavior

The command fails with the following message:

aws: [ERROR]: Invalid base64: "foobar"

Reproduction Steps

  1. Create an exportable ACM certificate
  2. Validate it
  3. Try to export it with aws acm export-certificate --certificate-arn <your-cert-arn> --passphrase foobar
  4. Contemplate the error message: aws: [ERROR]: Invalid base64: "foobar"

Using the aws-cli v1 instead of v2, the export works as expected.

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.34.15

Environment details (OS name and version, etc.)

Ubuntu 24.04.4 LTS

Metadata

Metadata

Labels

acmbugThis issue is a bug.p3This is a minor priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions