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

[tools/shoestring]: allow collect of multiple certificates date #527

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

Wayonb
Copy link
Contributor

@Wayonb Wayonb commented Jul 26, 2023

Update to use openssl storeutl to parse all certificates instead of openssl x509 which only returns information for the first.
openssl storeutl will fail if the input is not a valid pem, extract the certificate information from the output of openssl s_client.

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #527 (ad3fa17) into shoestring/dev (43d6d96) will increase coverage by 0.00%.
The diff coverage is 90.90%.

❗ Current head ad3fa17 differs from pull request most recent head 9e2da98. Consider uploading reports for the commit 9e2da98 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##           shoestring/dev     #527   +/-   ##
===============================================
  Coverage           98.18%   98.19%           
===============================================
  Files                 155      155           
  Lines                6297     6307   +10     
  Branches              143      143           
===============================================
+ Hits                 6183     6193   +10     
  Misses                114      114           
Flag Coverage Δ
tools-shoestring 96.76% <90.90%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
tools/shoestring/shoestring/internal/Preparer.py 100.00% <ø> (ø)
tools/shoestring/shoestring/wizard/__main__.py 0.00% <0.00%> (ø)
tools/shoestring/shoestring/__main__.py 97.29% <100.00%> (ø)
.../shoestring/healthagents/rest_https_certificate.py 98.33% <100.00%> (-1.67%) ⬇️
.../shoestring/shoestring/internal/OpensslExecutor.py 100.00% <100.00%> (ø)
.../shoestring/shoestring/internal/PackageResolver.py 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

Copy link
Contributor

@Jaguar0625 Jaguar0625 left a comment

Choose a reason for hiding this comment

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

looks good to me but wait for @gimre-xymcity review before merging

'-in', temp_file
'-noout',
'-certs',
temp_file
], command_input='Q', show_output=False)
Copy link
Member

Choose a reason for hiding this comment

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

this probably should not require command input ?

@Jaguar0625 Jaguar0625 force-pushed the fix/allow_collect_mulitple_cert_dates branch from 9e2da98 to 8a114c8 Compare July 31, 2023 16:03
@Jaguar0625 Jaguar0625 merged commit 8a114c8 into shoestring/dev Jul 31, 2023
1 check passed
@Jaguar0625 Jaguar0625 deleted the fix/allow_collect_mulitple_cert_dates branch July 31, 2023 16:03
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.

3 participants