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

Update the OpenJDK exclude tests list for Java Restricted Security Mode #591

Open
taoliult opened this issue Nov 11, 2022 · 1 comment
Open

Comments

@taoliult
Copy link
Contributor

Create the issue for tracking the OpenJDK exclude tests list updates for Java Restricted Security Mode.

In the Java Restricted Security Mode, the not allowed providers will not be loaded from the ServiceLoader. So, those test cases which create or add its own providers will definately failed when running the extended.openjdk tests. Add those test cases into the exclude list, so those test cases will be excluded when running the extended.openjdk tests.

@taoliult
Copy link
Contributor Author

Following test cases will be added into the exclude list.

  • Failed due to create and add test case its own providers

javax/smartcardio/TerminalFactorySpiTest.java.TerminalFactorySpiTest
java/security/KeyFactory/Failover.java.Failover
java/security/Provider/ChangeProviders.java.ChangeProviders
java/security/Provider/GetInstance.java.GetInstance
java/security/Provider/RemoveProvider.java.RemoveProvider
java/security/Security/SynchronizedAccess.java.SynchronizedAccess
java/security/Security/removing/RemoveProviderByIdentity.java.RemoveProviderByIdentity
java/security/Signature/SignatureGetAlgorithm.java.SignatureGetAlgorithm
javax/crypto/JceSecurity/SunJCE_BC_LoadOrdering.java.SunJCE_BC_LoadOrdering
javax/crypto/SecretKeyFactory/TestFailOver.java.TestFailOver
com/sun/net/ssl/SSLSecurity/ProviderTest.java.ProviderTest
javax/net/ssl/sanity/pluggability/CheckSSLContextExport.java.CheckSSLContextExport
sun/security/provider/SecureRandom/AbstractDrbg/SpecTest.java.SpecTest
sun/security/x509/AlgorithmId/ExtensibleAlgorithmId.java.ExtensibleAlgorithmId

  • Caused by: java.security.NoSuchAlgorithmException: JKS KeyStore not available
  • Because the current FIPS/Java Restricted Security Mode does not support file based keystore.

javax/net/ssl/ServerName/SSLEngineExplorerMatchedSNI.java.SSLEngineExplorerMatchedSNI
sun/security/ssl/SSLSocketImpl/SSLSocketSSLEngineCloseInbound.java.SSLSocketSSLEngineCloseInbound

  • NSS can not be initialized twice, because the FIPS already initial it.

sun/security/pkcs11/tls/TestKeyMaterialChaCha20.java.TestKeyMaterialChaCha20

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

No branches or pull requests

1 participant