Skip to content

Commit 13ec303

Browse files
Remove lingering certs - Redundant with keystores.
Signed-off-by: Finn Carroll <[email protected]>
1 parent bdaf3fe commit 13ec303

File tree

4 files changed

+0
-48
lines changed

4 files changed

+0
-48
lines changed

plugins/transport-grpc/src/test/java/org/opensearch/transport/grpc/SecureNetty4GrpcServerTransportTests.java

-4
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ public void testGrpcOptionalAuthTLS() {
109109
assertEquals(hasNoCertClient.checkHealth(), HealthCheckResponse.ServingStatus.SERVING);
110110
hasNoCertClient.close();
111111

112-
// Client with un-trusted cert - TODO
113-
114112
// Client with trusted cert
115113
NettyGrpcClient hasTrustedCertClient = new NettyGrpcClient.Builder().setAddress(remoteAddress).clientAuth(true).build();
116114
assertEquals(hasTrustedCertClient.checkHealth(), HealthCheckResponse.ServingStatus.SERVING);
@@ -146,8 +144,6 @@ public void testGrpcRequiredAuthTLS() {
146144
}
147145
hasNoCertClient.close();
148146

149-
// Client with un-trusted cert - TODO
150-
151147
// Client with trusted cert
152148
NettyGrpcClient hasTrustedCertClient = new NettyGrpcClient.Builder().setAddress(remoteAddress).clientAuth(true).build();
153149
assertEquals(hasTrustedCertClient.checkHealth(), HealthCheckResponse.ServingStatus.SERVING);

plugins/transport-grpc/src/test/java/org/opensearch/transport/grpc/SecureSettingsHelpers.java

-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public class SecureSettingsHelpers {
3939
private static final String TEST_PASS = "password"; // used for all keystores
4040

4141
static final String SERVER_KEYSTORE = "/netty4-server-secure.jks";
42-
static final String SERVER_CERT = "/server.crt";
4342
static final String CLIENT_KEYSTORE = "/netty4-client-secure.jks";
44-
static final String CLIENT_CERT = "/client.crt";
4543
static final String[] DEFAULT_SSL_PROTOCOLS = { "TLSv1.3", "TLSv1.2", "TLSv1.1" };
4644
static final String[] DEFAULT_CIPHERS = {
4745
"TLS_AES_128_GCM_SHA256",

plugins/transport-grpc/src/test/resources/client.crt

-21
This file was deleted.

plugins/transport-grpc/src/test/resources/server.crt

-21
This file was deleted.

0 commit comments

Comments
 (0)