-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8359956: Support algorithm constraints and certificate checks in SunX509 key manager #25016
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
base: master
Are you sure you want to change the base?
Changes from 23 commits
58cc444
e495e55
c80fc6a
19a2ad1
e5e8351
2b0c552
211f0a6
3af51b4
79aa9fe
fd04c0a
80488f4
d0cfbde
7552810
88cd401
5c137c1
451e1ef
7cf5bae
5fe3285
448442e
eaf343a
45a4a48
bcef734
a83ea8b
c5e381e
3edca30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,6 +233,10 @@ private void checkKeySize(KeyStore ks) throws Exception { | |
private static String clientCiperSuite = null; | ||
|
||
public static void main(String[] args) throws Exception { | ||
// Disable KeyManager's algorithm constraints checking. | ||
System.setProperty( | ||
"jdk.tls.SunX509keymanager.certSelectionChecking", "false"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if you instead just removed "RSA keySize < 1024" from the This same comment applies to other tests where you have set the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, good point! It works for this particular test but the same approach doesn't work for other tests because they either rely on TrustManager do the constraints checks or MD5 algorithm being blocks by TLSv1.3 spec. |
||
|
||
if (debug) { | ||
System.setProperty("javax.net.debug", "all"); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.