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

Add -text support to X509 tool, add Version tool #1773

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Conversation

andrewhop
Copy link
Contributor

Description of changes:

Add the -text option to the X509 tool which prints a certificate's contents in a human readable format. Also add the version tool which only supports printing the basic version information.

Testing:

Added a new test for X509 -text with some minor caveats due to difference in between OpenSSL versions. I didn't add a test for the version as that will always be different:

AWS-LC:
OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)

OpenSSL:
OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@andrewhop andrewhop requested a review from a team as a code owner August 16, 2024 00:27
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 78.31%. Comparing base (c9f6b6d) to head (97a4dfb).

Files Patch % Lines
tool-openssl/x509_test.cc 11.11% 8 Missing ⚠️
tool-openssl/x509.cc 50.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1773   +/-   ##
=======================================
  Coverage   78.30%   78.31%           
=======================================
  Files         580      580           
  Lines       97002    97016   +14     
  Branches    13902    13903    +1     
=======================================
+ Hits        75960    75975   +15     
+ Misses      20422    20419    -3     
- Partials      620      622    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrewhop andrewhop merged commit 28e55ba into aws:main Aug 20, 2024
104 of 106 checks passed
skmcgrail pushed a commit to skmcgrail/aws-lc that referenced this pull request Aug 22, 2024
### Description of changes:
Add the -text option to the X509 tool which prints a certificate's
contents in a human readable format. Also add the version tool which
only supports printing the basic version information.

### Testing:
Added a new test for X509 -text with some minor caveats due to
difference in between OpenSSL versions. I didn't add a test for the
version as that will always be different:
```
AWS-LC:
OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)

OpenSSL:
OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)
```

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
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.

5 participants