HomePhorge

Improve the error message when a CSR is rejected
20118411498aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Improve the error message when a CSR is rejected

The behavior without this patch is that a CSR with wildcards (*'s) is
rejected without an indication of the CSR name. In the situation where
a Master is bootstrapping itself, the user may have specified
--dns_alt_names=*,*.* and Puppet will generate a CSR with these
wildcards. It will then refuse to sign the CSR and exit with an
exception. Changing the --dns_alt_names to something acceptable is not
sufficient to get around the issue because the CSR persists.

This patch updates the error messages in two ways. First, we print the
name of the CSR to help the user clean out the bad request. Second, we
indicate the user must clean the CSR in order to progress past the
issue.

Details

Provenance
Jeff McCune <jeff@puppetlabs.com>Authored on
Michael Stahnke <stahnma@puppetlabs.com>Committed on Oct 22 2011, 9:24 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUafff3df2f42e: Allow a master to bootstrap itself with dns_alt_names and autosign
Branches
Unknown
Tags
Unknown

Event Timeline

Michael Stahnke <stahnma@puppetlabs.com> committed rPU20118411498a: Improve the error message when a CSR is rejected (authored by Jeff McCune <jeff@puppetlabs.com>).Oct 22 2011, 9:24 AM