Skip to content

8316138: Add GlobalSign 2 TLS root certificates #2715

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

Closed
wants to merge 3 commits into from

Conversation

Delawen
Copy link
Contributor

@Delawen Delawen commented May 17, 2024

Backport for https://bugs.openjdk.org/browse/JDK-8316138

Related to openjdk/jdk21u-dev#581 and openjdk/jdk17u-dev#2479

Changes since the original commit: the checksum for the certificates and the folder where the certs are stored.

]$ make run-test TEST="test/jdk/sun/security/lib/cacerts/VerifyCACerts.java"
Building target 'run-test' in configuration 'linux-x86_64-normal-server-release'
Skip building of Graal unit tests because 3rd party libraries directory is not specified
Skip building of Graal unit tests because 3rd party libraries directory is not specified
Creating jdk image
Test selection 'test/jdk/sun/security/lib/cacerts/VerifyCACerts.java', will run:
* jtreg:test/jdk/sun/security/lib/cacerts/VerifyCACerts.java

Running test 'jtreg:test/jdk/sun/security/lib/cacerts/VerifyCACerts.java'
Passed: sun/security/lib/cacerts/VerifyCACerts.java
Test results: passed: 1
Report written to /home/delawen/git/jdk11u-dev/build/linux-x86_64-normal-server-release/test-results/jtreg_test_jdk_sun_security_lib_cacerts_VerifyCACerts_java/html/report.html
Results written to /home/delawen/git/jdk11u-dev/build/linux-x86_64-normal-server-release/test-support/jtreg_test_jdk_sun_security_lib_cacerts_VerifyCACerts_java
Finished running test 'jtreg:test/jdk/sun/security/lib/cacerts/VerifyCACerts.java'
Test report is stored in build/linux-x86_64-normal-server-release/test-results/jtreg_test_jdk_sun_security_lib_cacerts_VerifyCACerts_java

==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
   jtreg:test/jdk/sun/security/lib/cacerts/VerifyCACerts.java
                                                         1     1     0     0   
==============================
TEST SUCCESS

Finished building target 'run-test' in configuration 'linux-x86_64-normal-server-release'

Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • JDK-8316138 needs maintainer approval
  • Commit message must refer to an issue

Issue

  • JDK-8316138: Add GlobalSign 2 TLS root certificates (Enhancement - P3 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2715/head:pull/2715
$ git checkout pull/2715

Update a local copy of the PR:
$ git checkout pull/2715
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2715/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2715

View PR using the GUI difftool:
$ git pr show -t 2715

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2715.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 17, 2024

👋 Welcome back Delawen! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 17, 2024

@Delawen This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8316138: Add GlobalSign 2 TLS root certificates

Reviewed-by: mdoerr, sgehwolf

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 2 new commits pushed to the master branch:

  • b8ee2aa: 8326591: New test JmodExcludedFiles.java fails on Windows when --with-external-symbols-in-bundles=public is used
  • 1d6965f: 8267796: vmTestbase/nsk/jvmti/scenarios/hotswap/HS201/hs201t002/TestDescription.java fails with NoClassDefFoundError

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@TheRealMDoerr, @gnu-andrew, @jerboaa) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title Backport 4083255440cfbf39b9683ea88a433d71ec6111e7 8316138: Add GlobalSign 2 TLS root certificates May 17, 2024
@openjdk
Copy link

openjdk bot commented May 17, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels May 17, 2024
@Delawen
Copy link
Contributor Author

Delawen commented May 17, 2024

/approval JDK-8316138 request Fix Request
This is a backport for https://bugs.openjdk.org/browse/JDK-8316138 It includes two new certificates for cacert. The original commit placed them in a different folder, which is not the right one for this JDK version. It also updates the test that checks certificates are in place, updating the checksum.

@openjdk
Copy link

openjdk bot commented May 17, 2024

@Delawen
JDK-8316138: The approval request has been created successfully.

@openjdk openjdk bot added the approval label May 17, 2024
@mlbridge
Copy link

mlbridge bot commented May 17, 2024

Webrevs

@Delawen
Copy link
Contributor Author

Delawen commented May 17, 2024

@jerboaa @TheRealMDoerr Similar to the previous PR now in JDK 11

Comment on lines 657 to 659
case "globalsignr46" ->
new CATestURLs("https://valid.r46.roots.globalsign.com",
"https://revoked.r46.roots.globalsign.com");
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this compile? Switch expressions are JDK 14+.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It did compile for me... maybe I compiled it with the wrong JDK!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sent another commit that fixed it. I compiled it with --with-boot-jdk= option pointing to a openjdk 11.0.19 2023-04-18 That should have failed, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. But unless you run the test it won't get compiled.

Copy link
Contributor

Choose a reason for hiding this comment

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

make run-test TEST="test/jdk/sun/security/lib/cacerts/VerifyCACerts.java test/jdk/security/infra/java/security/cert/CertPathValidator"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then I don't know what happened, because I make clean make images and make run-test TEST='...file.java'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In any case, the code is changed.

Copy link
Contributor Author

@Delawen Delawen May 20, 2024

Choose a reason for hiding this comment

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

I also had --disable-warnings-as-errors as a flag while building. Maybe that was it. I removed it just in case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was it, it won't happen again :)

After removing the --disable-warnings-as-errors flag, it throws an error:

/home/delawen/git/jdk11u-dev/test/jdk/security/infra/java/security/cert/CertPathValidator/certification/CAInterop.java:664: error: illegal start of expression
            case "globalsignr46" ->
                                 ^

@openjdk openjdk bot removed the rfr Pull request is ready for review label May 17, 2024
@Delawen Delawen force-pushed the backport-11-JDK-8316138 branch from c75901f to 1d5f0b1 Compare May 17, 2024 14:32
@openjdk
Copy link

openjdk bot commented May 17, 2024

@Delawen Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@Delawen Delawen force-pushed the backport-11-JDK-8316138 branch from 1d5f0b1 to c632511 Compare May 17, 2024 14:34
@Delawen
Copy link
Contributor Author

Delawen commented May 17, 2024

My bad, I force pushed the second commit. The review check is lost.

@openjdk
Copy link

openjdk bot commented May 17, 2024

@Delawen Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@openjdk openjdk bot added the rfr Pull request is ready for review label May 17, 2024
Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

This version looks good.

Copy link
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

Current version looks good to me. Matches 17u with the exception of the change to the switch statements.

Copy link
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

The 8u backport makes a good point that -Dcom.sun.security.ocsp.useget=false is of no use here without JDK-8328638. I would thus remove those lines as in the 8u version.

Also, when comparing with 8u, I noticed that the 11u version only is missing a newline between the new case statements and the earlier ones:

17u:

                             "https://revoked.root-e1.certainly.com");

+            case "globalsignr46" ->
+                    new CATestURLs("https://valid.r46.roots.globalsign.com",
+                            "https://revoked.r46.roots.globalsign.com");
+            case "globalsigne46" ->
+                    new CATestURLs("https://valid.e46.roots.globalsign.com",
+                            "https://revoked.e46.roots.globalsign.com");
+
             default -> throw new RuntimeException("No test setup found for: " + alias);

11u:

                             "https://revoked.root-e1.certainly.com");
+            case "globalsignr46":
+                    return new CATestURLs("https://valid.r46.roots.globalsign.com",
+                            "https://revoked.r46.roots.globalsign.com");
+            case "globalsigne46":
+                    return new CATestURLs("https://valid.e46.roots.globalsign.com",
+                            "https://revoked.e46.roots.globalsign.com");

             default: throw new RuntimeException("No test setup found for: " + alias);

It would be good if all three backports matched.

… here without JDK-8328638

Adding white line between switch case statements as in JDK 17
@Delawen
Copy link
Contributor Author

Delawen commented May 21, 2024

@gnu-andrew Changes pushed and the test run locally.

@Delawen Delawen requested a review from jerboaa May 21, 2024 11:08
@Delawen
Copy link
Contributor Author

Delawen commented May 21, 2024

/integrate

@Delawen Delawen requested a review from gnu-andrew May 21, 2024 13:55
@openjdk
Copy link

openjdk bot commented May 21, 2024

@Delawen This pull request has not yet been marked as ready for integration.

@jerboaa
Copy link
Contributor

jerboaa commented May 21, 2024

@Delawen Please ask for approval using the /approval command before you integrate.

@Delawen
Copy link
Contributor Author

Delawen commented May 22, 2024

/approval JDK-8316138 request Fix Request
This is a backport for https://bugs.openjdk.org/browse/JDK-8316138 It includes two new certificates for cacert. It updates the test that checks certificates are in place, updating the checksum.

@openjdk
Copy link

openjdk bot commented May 22, 2024

@Delawen
JDK-8316138: The approval request has been updated successfully.

@jerboaa
Copy link
Contributor

jerboaa commented May 22, 2024

/approve yes

@openjdk
Copy link

openjdk bot commented May 22, 2024

@jerboaa
8316138: The approval request has been approved.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels May 22, 2024
@Delawen
Copy link
Contributor Author

Delawen commented May 22, 2024

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label May 22, 2024
@openjdk
Copy link

openjdk bot commented May 22, 2024

@Delawen
Your change (at version afeeaf6) is now ready to be sponsored by a Committer.

@TheRealMDoerr
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented May 22, 2024

Going to push as commit b7596f3.
Since your change was applied there have been 2 commits pushed to the master branch:

  • b8ee2aa: 8326591: New test JmodExcludedFiles.java fails on Windows when --with-external-symbols-in-bundles=public is used
  • 1d6965f: 8267796: vmTestbase/nsk/jvmti/scenarios/hotswap/HS201/hs201t002/TestDescription.java fails with NoClassDefFoundError

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 22, 2024
@openjdk openjdk bot closed this May 22, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels May 22, 2024
@openjdk
Copy link

openjdk bot commented May 22, 2024

@TheRealMDoerr @Delawen Pushed as commit b7596f3.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants