HomePhorge

(PUP-576) Handle Ruby 2.0 OpenSSL lib error message
f4b6cc2c2ceeUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-576) Handle Ruby 2.0 OpenSSL lib error message

The error message returned by Ruby's OpenSSL library when the host name
does not match the server certificate changes between 1.8, 1.9 and 2.x.
We handle this message and re-wrap it in a more informative form, but
were failing to catch the 2.x variation.

1.8: 'hostname was not match with the server certificate'
1.9: "hostname does not match the server certificate"
2.x: "hostname \"#{hostname}\" does not match the server certificate"

(2.0 and 2.1 as of the time of this commit)

This change just alters the regex to catch all three variants.

Details

Event Timeline

Josh Partlow <joshua.partlow@puppetlabs.com> committed rPUf4b6cc2c2cee: (PUP-576) Handle Ruby 2.0 OpenSSL lib error message (authored by Josh Partlow <joshua.partlow@puppetlabs.com>).Jan 30 2014, 12:19 AM