-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
get serialNumber from subject #118
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #118 +/- ##
==========================================
- Coverage 94.89% 94.78% -0.11%
==========================================
Files 3 3
Lines 588 595 +7
==========================================
+ Hits 558 564 +6
- Misses 30 31 +1
Continue to review full report at Codecov.
|
Thank you for your contribution. Sorry about the delay in handling this PR. To proceed, this will require tests and the tightening of the comparisons in (Tests are failing for an unrelated reason - I'll fix that in master.) |
def _get_serial_number(self, comps, serial): | ||
for v in comps: | ||
if len(v) == 2 and \ | ||
v[0].decode('utf-8') in 'serialNumber' and \ |
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.
This comparison seems wrong. Why are you testing for a substring of 'serialNumber'?
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.
😄 definitely some autocomplete/paste issue.
I ended up omitting the serial number validation in my project and left the merge request half done, but since you want to give this attention I'll get back to this.
Thanks for a great library!
04b5d0e
to
c6b7dec
Compare
@busla any news about this ? travis is broken |
8f30f82
to
06e5f93
Compare
7a5c538
to
6baf513
Compare
5ee9cd5
to
b87494d
Compare
6b21a86
to
6879c98
Compare
9717621
to
82ae152
Compare
7e7f504
to
b3de531
Compare
Allows the serialNumber to be extracted and validated from cert Subject.