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

Better error handling for empty certificate/keystore files #158

Merged
merged 7 commits into from
Mar 31, 2018

Conversation

csstaub
Copy link
Member

@csstaub csstaub commented Mar 23, 2018

Fixes a bug found by @wtmcc wherein ghostunnel will fail with a nil pointer exception when the certificate/keystore file being read is empty, specifically because certigo will read the file successfully but due to not finding any certificates the resulting certAndKey.Leaf will be nil. Also bumps certigo dependency to pick up a change to make the error message from the read call better.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 90.275% when pulling cb20be3 on cs/certigo into dba0e7f on master.

@csstaub
Copy link
Member Author

csstaub commented Mar 30, 2018

Bumping this

@csstaub csstaub merged commit 993988f into master Mar 31, 2018
@csstaub csstaub deleted the cs/certigo branch March 31, 2018 17:26
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