@@ -92,20 +92,20 @@ private static void testServerSsl(Path tempDir, boolean sslRmiRegistry) {
9292 // server keystore with public/private key pair
9393 // client trust store with certificate from server
9494
95- TestKeyStore serverKeystore =
95+ TestKeyStore serverKeyStore =
9696 TestKeyStore .newKeyStore (tempDir .resolve ("server.jks" ), SERVER_PASSWORD );
9797 TestKeyStore clientTrustStore =
9898 TestKeyStore .newKeyStore (tempDir .resolve ("client.jks" ), CLIENT_PASSWORD );
9999
100- X509Certificate serverCertificate = serverKeystore .addKeyPair ();
100+ X509Certificate serverCertificate = serverKeyStore .addKeyPair ();
101101 clientTrustStore .addTrustedCertificate (serverCertificate );
102102
103103 connectionTest (
104104 app ->
105105 (sslRmiRegistry ? app .withSslRmiRegistry (4242 ) : app )
106106 .withJmxPort (JMX_PORT )
107107 .withJmxSsl ()
108- .withKeyStore (serverKeystore ),
108+ .withKeyStore (serverKeyStore ),
109109 scraper ->
110110 (sslRmiRegistry ? scraper .withSslRmiRegistry () : scraper )
111111 .withRmiServiceUrl (APP_HOST , JMX_PORT )
@@ -123,19 +123,19 @@ void serverSslClientSsl(@TempDir Path tempDir) {
123123 // client key store with public/private key pair
124124 // client trust store with certificate from server
125125
126- TestKeyStore serverKeystore =
126+ TestKeyStore serverKeyStore =
127127 TestKeyStore .newKeyStore (tempDir .resolve ("server-keystore.jks" ), SERVER_PASSWORD );
128128 TestKeyStore serverTrustStore =
129129 TestKeyStore .newKeyStore (tempDir .resolve ("server-truststore.jks" ), SERVER_PASSWORD );
130130
131- X509Certificate serverCertificate = serverKeystore .addKeyPair ();
131+ X509Certificate serverCertificate = serverKeyStore .addKeyPair ();
132132
133- TestKeyStore clientKeystore =
133+ TestKeyStore clientKeyStore =
134134 TestKeyStore .newKeyStore (tempDir .resolve ("client-keystore.jks" ), CLIENT_PASSWORD );
135135 TestKeyStore clientTrustStore =
136136 TestKeyStore .newKeyStore (tempDir .resolve ("client-truststore.jks" ), CLIENT_PASSWORD );
137137
138- X509Certificate clientCertificate = clientKeystore .addKeyPair ();
138+ X509Certificate clientCertificate = clientKeyStore .addKeyPair ();
139139
140140 // adding certificates in trust stores
141141 clientTrustStore .addTrustedCertificate (serverCertificate );
@@ -146,12 +146,12 @@ void serverSslClientSsl(@TempDir Path tempDir) {
146146 app .withJmxPort (JMX_PORT )
147147 .withJmxSsl ()
148148 .withClientSslCertificate ()
149- .withKeyStore (serverKeystore )
149+ .withKeyStore (serverKeyStore )
150150 .withTrustStore (serverTrustStore ),
151151 scraper ->
152152 scraper
153153 .withRmiServiceUrl (APP_HOST , JMX_PORT )
154- .withKeyStore (clientKeystore )
154+ .withKeyStore (clientKeyStore )
155155 .withTrustStore (clientTrustStore ));
156156 }
157157
0 commit comments