Skip to content

Fix getDERfromPEM in Ubuntu 22.04#18

Open
doorholez wants to merge 1 commit intonimpo:mainfrom
doorholez:main
Open

Fix getDERfromPEM in Ubuntu 22.04#18
doorholez wants to merge 1 commit intonimpo:mainfrom
doorholez:main

Conversation

@doorholez
Copy link
Copy Markdown
Contributor

I get a wrong hash in Ubuntu 22.04. I suspect that the regular expression of awk in getDERfromPEM caused this problem.
Without the [\r|\n]*, awk will never set i=1. As a result, awk will always output an empty string, the downstream functions will process an empty string and finally output a wrong hash (of course the hash of an empty string is not the hash of the certificate).
I don't know whether #17 is related to getDERfromPEM and I hope this commit can fix it.

I get a wrong hash in Ubuntu 22.04. I suspect that the regular expression of awk in `getDERfromPEM` caused this problem.
Without the [\r|\n]*, awk will never set i=1. As a result, the awk will output an empty string, the downstream functions will process an empty string and finally output a wrong hash (of course the hash of an empty string is not the hash of the certificate).
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.

1 participant