Skip to content

Modify grading for incomplete chain. #2798

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

Open
wants to merge 1 commit into
base: 3.2
Choose a base branch
from
Open

Conversation

secinto
Copy link

@secinto secinto commented Jun 13, 2025

Modified grading for incomplete chain

Describe your changes

SSLLabs doesn't give an T if the chain is incomplete but rather an B. Would be nice if we have the same grading here.

What is your pull request about?

  • [x ] Improvement

If it's a code change please check the boxes which are applicable

  • For the main program: My edits contain no tabs, indentation is five spaces and any line endings do not contain any blank chars
  • I've read CONTRIBUTING.md and Coding_Convention.md
  • I have tested this fix or improvement against >=2 hosts and I couldn't spot a problem

Modified grading for incomplete chain
@drwetter
Copy link
Collaborator

thanks!

@magnuslarsen can you review this please?

Copy link
Contributor

@magnuslarsen magnuslarsen left a comment

Choose a reason for hiding this comment

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

Except for one extraneous comment, LGTM

Just to add some documentation:

Invalid certificates immediately results in zero score (T) - but later (2009i) incomplete chains were revised to a B

@@ -7834,7 +7838,12 @@ determine_trust() {
if ! [[ ${certificate_file[i]} =~ Java ]]; then
# Exemption for Java AND rating, as this store doesn't seem to be as complete.
# We won't penalize this but we still need to raise a red flag. See #1648
set_grade_cap "T" "Issues with chain of trust $code"
# set_grade_cap "T" "Issues with chain of trust $code"
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for this comment

@drwetter
Copy link
Collaborator

drwetter commented Jun 14, 2025

Thanks, @magnuslarsen 👍

Also there are additional white spaces

image

Could you take care of both issues @secinto ?

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