-
Notifications
You must be signed in to change notification settings - Fork 238
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
Conversation
👋 Welcome back Delawen! A progress list of the required criteria for merging this PR into |
@Delawen This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
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
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 |
This backport pull request has now been updated with issue from the original commit. |
/approval JDK-8316138 request Fix Request |
Webrevs
|
@jerboaa @TheRealMDoerr Similar to the previous PR now in JDK 11 |
case "globalsignr46" -> | ||
new CATestURLs("https://valid.r46.roots.globalsign.com", | ||
"https://revoked.r46.roots.globalsign.com"); |
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.
Does this compile? Switch expressions are JDK 14+.
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.
It did compile for me... maybe I compiled it with the wrong JDK!
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.
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?
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.
Yes. But unless you run the test it won't get compiled.
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.
make run-test TEST="test/jdk/sun/security/lib/cacerts/VerifyCACerts.java test/jdk/security/infra/java/security/cert/CertPathValidator"
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.
Then I don't know what happened, because I make clean
make images
and make run-test TEST='...file.java'
.
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.
In any case, the code is changed.
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.
I also had --disable-warnings-as-errors
as a flag while building. Maybe that was it. I removed it just in case.
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.
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" ->
^
c75901f
to
1d5f0b1
Compare
@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. |
1d5f0b1
to
c632511
Compare
My bad, I force pushed the second commit. The review check is lost. |
@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. |
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 version looks good.
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.
Current version looks good to me. Matches 17u with the exception of the change to the switch
statements.
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.
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
@gnu-andrew Changes pushed and the test run locally. |
/integrate |
@Delawen This pull request has not yet been marked as ready for integration. |
@Delawen Please ask for approval using the |
/approval JDK-8316138 request Fix Request |
/approve yes |
@jerboaa |
/integrate |
/sponsor |
Going to push as commit b7596f3.
Your commit was automatically rebased without conflicts. |
@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. |
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.
Progress
Issue
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