diff --git a/appserver/extras/docker-images/pom.xml b/appserver/extras/docker-images/pom.xml
index 5417b7dc3c5..c5ab49cf90b 100644
--- a/appserver/extras/docker-images/pom.xml
+++ b/appserver/extras/docker-images/pom.xml
@@ -15,8 +15,8 @@
true
azul/zulu-openjdk
- 8u292
- 11.0.9
+ 8u262
+ 11.0.7
domain1
payara5
diff --git a/nucleus/admin/server-mgmt/src/test/java/fish/payara/admin/servermgmt/cli/PrintCertificateCommandTest.java b/nucleus/admin/server-mgmt/src/test/java/fish/payara/admin/servermgmt/cli/PrintCertificateCommandTest.java
index 60c62125974..ef3780a6c7a 100644
--- a/nucleus/admin/server-mgmt/src/test/java/fish/payara/admin/servermgmt/cli/PrintCertificateCommandTest.java
+++ b/nucleus/admin/server-mgmt/src/test/java/fish/payara/admin/servermgmt/cli/PrintCertificateCommandTest.java
@@ -57,7 +57,6 @@
import java.security.KeyPairGenerator;
import java.security.KeyStore;
import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.Security;
import java.security.cert.Certificate;
@@ -100,14 +99,9 @@
@RunWith(Parameterized.class)
public class PrintCertificateCommandTest {
- private static final BouncyCastleProvider PROVIDER = new BouncyCastleProvider();
-
private static final String ALIAS = "test";
- private static final String KEYSTORE_PASSWORD = "changeit";
- private static final String KS_TYPE_JKS = "JKS";
- private static final String KS_TYPE_JCEKS = "JCEKS";
- private static final String KS_TYPE_PKCS12 = "PKCS12";
+ private static final String KEYSTORE_PASSWORD = "changeit";
private static final File FILE_JKS = new File("target/pcct.jks");
private static final File FILE_PKCS12 = new File("target/pcct.p12");
@@ -134,9 +128,9 @@ public static void initEnvironment() throws Exception {
final KeyPair keyPair = createKeyPair();
final X509Certificate certificate = createSelfSignedCertificate(keyPair);
- saveKeyStore(keyPair.getPrivate(), certificate, FILE_PKCS12, KS_TYPE_PKCS12);
- saveKeyStore(keyPair.getPrivate(), certificate, FILE_JKS, KS_TYPE_JKS);
- saveKeyStore(keyPair.getPrivate(), certificate, FILE_JCEKS, KS_TYPE_JCEKS);
+ saveKeyStore(keyPair.getPrivate(), certificate, FILE_PKCS12, "PKCS12");
+ saveKeyStore(keyPair.getPrivate(), certificate, FILE_JKS, "JKS");
+ saveKeyStore(keyPair.getPrivate(), certificate, FILE_JCEKS, "JCEKS");
saveDer(certificate);
savePem(certificate);
}
@@ -227,12 +221,7 @@ public void testBCProvider() throws Exception {
private static void saveKeyStore(final PrivateKey key, final X509Certificate certificate, //
final File keystoreFile, final String keystoreType) throws Exception {
- final KeyStore keystore;
- if (KS_TYPE_PKCS12.equals(keystoreType)) {
- keystore = KeyStore.getInstance(keystoreType, PROVIDER);
- } else {
- keystore = KeyStore.getInstance(keystoreType);
- }
+ final KeyStore keystore = KeyStore.getInstance(keystoreType);
keystore.load(null, null);
keystore.setKeyEntry(ALIAS, key, "changeit".toCharArray(), new Certificate[] {certificate});
try (final OutputStream os = new FileOutputStream(keystoreFile)) {
@@ -257,8 +246,8 @@ private static void savePem(final X509Certificate certificate) throws IOExceptio
}
- private static KeyPair createKeyPair() throws NoSuchAlgorithmException, NoSuchProviderException {
- final KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", PROVIDER);
+ private static KeyPair createKeyPair() throws NoSuchAlgorithmException {
+ final KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg.initialize(2048);
return kpg.generateKeyPair();
}