-
Notifications
You must be signed in to change notification settings - Fork 29
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: change OCSP hash and encoding #141
Conversation
Signed-off-by: Kody Kimberl <kody.kimberl.work@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #141 +/- ##
==========================================
- Coverage 89.32% 89.13% -0.20%
==========================================
Files 21 21
Lines 1677 1693 +16
==========================================
+ Hits 1498 1509 +11
- Misses 142 149 +7
+ Partials 37 35 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Kody Kimberl <kody.kimberl.work@gmail.com>
Signed-off-by: Kody Kimberl <kody.kimberl.work@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Kody Kimberl <kody.kimberl.work@gmail.com>
Co-authored-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: Kody Kimberl <59657721+kody-kimberl@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @kody-kimberl! The logic looks much cleaner now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is a followup fix to #134
After testing with real certificates, there are some discrepancies with what hashes are supported and the correct URL encoding.
The following do not support SHA256 hashes:
As this represents a large percentage of public CAs, we should change the hashing algorithm to SHA1, which has been confirmed to be supported by all that were tested.
Additionally, the base64 URL encoding was not actually escaping URL characters, resulting in malformed requests. We need to change it to StdEncoding and query escape it.
Signed-off-by: Kody Kimberl kody.kimberl.work@gmail.com