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

fix: Add PEM header for base64 private key on linux #39

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Conversation

Andrew-Lees11
Copy link
Contributor

If you tried to create a private key using a base64 encoded String it would crash on linux. This was because the OpenSSL interface we are using takes a PEM key and we were not adding the required headers.

This PR fixes this issue and adds a test case to cover the expected behaviour.

Copy link
Collaborator

@billabt billabt left a comment

Choose a reason for hiding this comment

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

👍

@billabt billabt merged commit 6a42189 into master Mar 6, 2019
@djones6 djones6 deleted the base64Key branch April 4, 2019 10:57
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