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

potential duplicate linebreak in pemEncoded #30

Open
ehealthexperts-rk opened this issue May 18, 2020 · 2 comments
Open

potential duplicate linebreak in pemEncoded #30

ehealthexperts-rk opened this issue May 18, 2020 · 2 comments

Comments

@ehealthexperts-rk
Copy link

Depending on the length of the certificate the function "pemEncoded" might render a "\n" just before "\n-----END CERTIFICATE-----".
When the resulting string is saved and opened with a certificate viewer the file might be corrupted.
I removed the empty line manually and then the viewer accepted the file.

@DanielRuf
Copy link
Contributor

@ehealthexperts-rk thanks for reporting this. Can you provide a PR which fixes this?

@ehealthexperts-rk
Copy link
Author

@DanielRuf Yes, see #31

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

No branches or pull requests

2 participants