Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return original error when retrying TLS connection with system wide CA set #7414

Merged
merged 1 commit into from May 30, 2017

Conversation

wupeka
Copy link

@wupeka wupeka commented May 29, 2017

Description of change

There is a fallback to system CA set if root CA is set and server cert fails verification. If it fails we should return original error as it's more specific. This is especially important on Windows as with current code a certificate that's expired but is correctly signed by custom CA will fail as unsigned (by system CA) instead of expired.

QA steps

Check TestUpdateCert unit test on Windows.

Copy link
Contributor

@howbazaar howbazaar left a comment

Choose a reason for hiding this comment

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

LGTM

@wallyworld
Copy link
Member

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented May 30, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit fb58ae0 into juju:develop May 30, 2017
jujubot added a commit that referenced this pull request May 30, 2017
Better log message in case of TLS error

## Description of change
Follow up from #7414 - lower error message level.

## QA steps
Check debug level log messages on TestUpdateCert unit test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants