Skip to content

(#7110) Better SSL error message when certificate doesn't match key#249

Merged
jeffmccune merged 1 commit intopuppetlabs:masterfrom
lifton:master
Dec 8, 2011
Merged

(#7110) Better SSL error message when certificate doesn't match key#249
jeffmccune merged 1 commit intopuppetlabs:masterfrom
lifton:master

Conversation

@lifton
Copy link
Contributor

@lifton lifton commented Dec 7, 2011

Previously, any error with the certificate retrieved from the master
matching the agent's private key would give the same static error
message, which wasn't particularly helpful. This commit differentiates
three different error cases: missing certificate, missing private key,
and certificate doesn't match private key. In the last case, the error
message includes the fingerprint of the certificate in question and
explicit command line instructions on how to fix the problem.

In addition to all tests passing, I tested the error messaging and
included instructions in a virtual machine setup running PE 2.0.0.

I removed a redundant test.

Thanks to Jeff McCune, Jacob Helwig, and Nick Lewis for answering questions and giving suggestions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is wrong here. Seems like this test shouldn't be passing because it has the wrong error message. I'll look into this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. A bad error message was camouflaged by a bad test.

Previously, any error with the certificate retrieved from the master
matching the agent's private key would give the same static error
message, which wasn't particularly helpful. This commit differentiates
three different error cases: missing certificate, missing private key,
and certificate doesn't match private key. In the last case, the error
message includes the fingerprint of the certificate in question and
explicit command line instructions on how to fix the problem.

In addition to all tests passing, I tested the error messaging and
included instructions in a virtual machine setup running PE 2.0.0.
jeffmccune pushed a commit that referenced this pull request Dec 8, 2011
(#7110) Better SSL error message when certificate doesn't match key
@jeffmccune jeffmccune merged commit 94bdc38 into puppetlabs:master Dec 8, 2011
hlindberg pushed a commit to hlindberg/puppet that referenced this pull request Oct 16, 2014
Fix incorrect puppet path and add puppet apply --graph
melissa pushed a commit to melissa/puppet that referenced this pull request Mar 30, 2018
(maint) Update upstream CI cpp-pcp-client 1.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants