#9562 ipa ca-show NAME --certificate-out=file creates empty file when NAME does not exist
Closed: fixed by frenaud. Opened by rcritten.

Issue

Cloned from https://issues.redhat.com/browse/RHEL-18062

ipa ca-show NAME --certificate-out=' creates empty file when NAME does not exist

Steps to Reproduce

  1. ipa ca-show unknown --certificate-out=

Actual behavior

An empty file is created.

Expected behavior

No file should be created if a CA does not exist.


Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-18062

PR https://github.com/freeipa/freeipa/pull/7291

master:

  • a9bb811296b99d21a150adf0c7a0282df3337c7c Check for file permissions after the ca/cert-show is complete
  • 5d3c6b761b9d59ce6640d1141848eb66585795f7 Return 2 when certificates are not found during requests

ipa-4-11:

  • 3d8a51656d117e283519f355c6cb45678ea7a14e Check for file permissions after the ca/cert-show is complete
  • 759164ae5b42aca841904ed75d6d5e0ce25bd825 Return 2 when certificates are not found during requests

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @abbra:
- Custom field changelog adjusted to When saving a CA certificate as part of ipa ca/cert-show NAME commands, an empty file was created when CA was not found by that name. Empty file is not created anymore, making easier an automated certificate issuance.

Metadata