From 44bf355ed79e9bcc182d4aef6c42843b7177527e Mon Sep 17 00:00:00 2001 From: nmittler Date: Fri, 22 May 2015 11:17:12 -0700 Subject: [PATCH] Making test certs more shareable To use the test certs a module has to depend on the grpc-interop-testing module, which doesn't really make sense. I'm moving the certs to the grpc-testing module, which is meant to be a sort of testing common area for all of our modules. --- benchmarks/build.gradle | 3 +- .../io/grpc/benchmarks/qps/AsyncServer.java | 8 +- .../benchmarks/qps/ServerConfiguration.java | 4 +- .../java/io/grpc/benchmarks/qps/Utils.java | 6 +- .../integration/TestServiceClient.java | 6 +- .../integration/TestServiceServer.java | 2 +- .../io/grpc/testing/integration/Util.java | 75 ------------------ .../testing/integration/Http2NettyTest.java | 8 +- .../testing/integration/Http2OkHttpTest.java | 8 +- .../main/java/io/grpc/testing/TestUtils.java | 79 ++++++++++++++++++- .../src/main/resources/certs/README | 0 .../src/main/resources/certs/badclient.key | 0 .../src/main/resources/certs/badclient.pem | 0 .../src/main/resources/certs/badserver.key | 0 .../src/main/resources/certs/badserver.pem | 0 .../src/main/resources/certs/ca-openssl.cnf | 0 .../src/main/resources/certs/ca.key | 0 .../src/main/resources/certs/ca.pem | 0 .../src/main/resources/certs/client.key | 0 .../src/main/resources/certs/client.pem | 0 .../src/main/resources/certs/server0.key | 0 .../src/main/resources/certs/server0.pem | 0 .../main/resources/certs/server1-openssl.cnf | 0 .../src/main/resources/certs/server1.key | 0 .../src/main/resources/certs/server1.pem | 0 25 files changed, 103 insertions(+), 96 deletions(-) rename {interop-testing => testing}/src/main/resources/certs/README (100%) rename {interop-testing => testing}/src/main/resources/certs/badclient.key (100%) rename {interop-testing => testing}/src/main/resources/certs/badclient.pem (100%) rename {interop-testing => testing}/src/main/resources/certs/badserver.key (100%) rename {interop-testing => testing}/src/main/resources/certs/badserver.pem (100%) rename {interop-testing => testing}/src/main/resources/certs/ca-openssl.cnf (100%) rename {interop-testing => testing}/src/main/resources/certs/ca.key (100%) rename {interop-testing => testing}/src/main/resources/certs/ca.pem (100%) rename {interop-testing => testing}/src/main/resources/certs/client.key (100%) rename {interop-testing => testing}/src/main/resources/certs/client.pem (100%) rename {interop-testing => testing}/src/main/resources/certs/server0.key (100%) rename {interop-testing => testing}/src/main/resources/certs/server0.pem (100%) rename {interop-testing => testing}/src/main/resources/certs/server1-openssl.cnf (100%) rename {interop-testing => testing}/src/main/resources/certs/server1.key (100%) rename {interop-testing => testing}/src/main/resources/certs/server1.pem (100%) diff --git a/benchmarks/build.gradle b/benchmarks/build.gradle index 5a45187f500..8ec1d729da6 100644 --- a/benchmarks/build.gradle +++ b/benchmarks/build.gradle @@ -36,7 +36,8 @@ dependencies { project(':grpc-netty'), project(':grpc-okhttp'), project(':grpc-stub'), - project(':grpc-interop-testing'), + project(':grpc-protobuf'), + project(':grpc-testing'), libraries.junit, libraries.mockito, libraries.hdrhistogram, diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java index d849259d4b4..abb8e46c0a5 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/AsyncServer.java @@ -31,8 +31,6 @@ package io.grpc.benchmarks.qps; -import static io.grpc.testing.integration.Util.loadCert; - import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.ByteString; @@ -44,8 +42,10 @@ import io.grpc.testing.SimpleRequest; import io.grpc.testing.SimpleResponse; import io.grpc.testing.TestServiceGrpc; +import io.grpc.testing.TestUtils; import io.grpc.transport.netty.GrpcSslContexts; import io.grpc.transport.netty.NettyServerBuilder; + import io.netty.channel.EventLoopGroup; import io.netty.channel.ServerChannel; import io.netty.channel.nio.NioEventLoopGroup; @@ -106,8 +106,8 @@ static ServerImpl newServer(ServerConfiguration config) throws IOException { System.out.println("Using fake CA for TLS certificate.\n" + "Run the Java client with --tls --testca"); - File cert = loadCert("server1.pem"); - File key = loadCert("server1.key"); + File cert = TestUtils.loadCert("server1.pem"); + File key = TestUtils.loadCert("server1.key"); boolean useJdkSsl = config.transport == ServerConfiguration.Transport.NETTY_NIO; sslContext = GrpcSslContexts.forServer(cert, key) .sslProvider(useJdkSsl ? SslProvider.JDK : SslProvider.OPENSSL) diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/ServerConfiguration.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/ServerConfiguration.java index eb9c63d6cba..a153609e579 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/ServerConfiguration.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/ServerConfiguration.java @@ -34,9 +34,9 @@ import static io.grpc.benchmarks.qps.SocketAddressValidator.INET; import static io.grpc.benchmarks.qps.SocketAddressValidator.UDS; import static io.grpc.benchmarks.qps.Utils.parseBoolean; -import static io.grpc.testing.integration.Util.pickUnusedPort; import static java.lang.Integer.parseInt; +import io.grpc.testing.TestUtils; import io.grpc.transport.netty.NettyChannelBuilder; import java.net.InetSocketAddress; @@ -160,7 +160,7 @@ protected void setServerValue(ServerConfiguration config, String value) { SocketAddress address = Utils.parseSocketAddress(value); if (address instanceof InetSocketAddress) { InetSocketAddress addr = (InetSocketAddress) address; - int port = addr.getPort() == 0 ? pickUnusedPort() : addr.getPort(); + int port = addr.getPort() == 0 ? TestUtils.pickUnusedPort() : addr.getPort(); // Re-create the address so that the server is available on all local addresses. address = new InetSocketAddress(port); } diff --git a/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java b/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java index 0508d93680f..2880b4c18df 100644 --- a/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java +++ b/benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java @@ -31,18 +31,18 @@ package io.grpc.benchmarks.qps; -import static io.grpc.testing.integration.Util.loadCert; - import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.ByteString; import io.grpc.Channel; import io.grpc.testing.Payload; import io.grpc.testing.SimpleRequest; +import io.grpc.testing.TestUtils; import io.grpc.transport.netty.GrpcSslContexts; import io.grpc.transport.netty.NegotiationType; import io.grpc.transport.netty.NettyChannelBuilder; import io.grpc.transport.okhttp.OkHttpChannelBuilder; + import io.netty.channel.EventLoopGroup; import io.netty.channel.epoll.EpollDomainSocketChannel; import io.netty.channel.epoll.EpollEventLoopGroup; @@ -139,7 +139,7 @@ static Channel newClientChannel(ClientConfiguration config) throws IOException { SslContext context = null; NegotiationType negotiationType = config.tls ? NegotiationType.TLS : NegotiationType.PLAINTEXT; if (config.tls && config.testca) { - File cert = loadCert("ca.pem"); + File cert = TestUtils.loadCert("ca.pem"); boolean useJdkSsl = config.transport == ClientConfiguration.Transport.NETTY_NIO; context = GrpcSslContexts.forClient().trustManager(cert) .sslProvider(useJdkSsl ? SslProvider.JDK : SslProvider.OPENSSL) diff --git a/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java b/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java index 85c79103a9e..0c6b0fbc9bb 100644 --- a/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java +++ b/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java @@ -32,6 +32,7 @@ package io.grpc.testing.integration; import io.grpc.ChannelImpl; +import io.grpc.testing.TestUtils; import io.grpc.transport.netty.GrpcSslContexts; import io.grpc.transport.netty.NegotiationType; import io.grpc.transport.netty.NettyChannelBuilder; @@ -216,7 +217,8 @@ protected ChannelImpl createChannel() { SslContext sslContext = null; if (useTestCa) { try { - sslContext = GrpcSslContexts.forClient().trustManager(Util.loadCert("ca.pem")).build(); + sslContext = GrpcSslContexts.forClient().trustManager( + TestUtils.loadCert("ca.pem")).build(); } catch (Exception ex) { throw new RuntimeException(ex); } @@ -234,7 +236,7 @@ protected ChannelImpl createChannel() { if (useTls) { try { SSLSocketFactory factory = useTestCa - ? Util.getSslSocketFactoryForCertainCert(Util.loadCert("ca.pem")) + ? TestUtils.getSslSocketFactoryForCertainCert(TestUtils.loadCert("ca.pem")) : (SSLSocketFactory) SSLSocketFactory.getDefault(); builder.sslSocketFactory(factory); } catch (Exception e) { diff --git a/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java b/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java index 47597902c2d..08080e434b2 100644 --- a/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java +++ b/interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java @@ -135,7 +135,7 @@ private void start() throws Exception { SslContext sslContext = null; if (useTls) { sslContext = GrpcSslContexts.forServer( - Util.loadCert("server1.pem"), Util.loadCert("server1.key")).build(); + TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key")).build(); } server = NettyServerBuilder.forPort(port) .sslContext(sslContext) diff --git a/interop-testing/src/main/java/io/grpc/testing/integration/Util.java b/interop-testing/src/main/java/io/grpc/testing/integration/Util.java index 4912b659f99..6a9ba725d10 100644 --- a/interop-testing/src/main/java/io/grpc/testing/integration/Util.java +++ b/interop-testing/src/main/java/io/grpc/testing/integration/Util.java @@ -38,24 +38,8 @@ import org.junit.Assert; -import java.io.BufferedInputStream; -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileWriter; -import java.io.IOException; -import java.io.InputStream; -import java.net.ServerSocket; -import java.security.KeyStore; -import java.security.cert.CertificateFactory; -import java.security.cert.X509Certificate; import java.util.List; -import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLSocketFactory; -import javax.net.ssl.TrustManagerFactory; -import javax.security.auth.x500.X500Principal; - /** * Utility methods to support integration testing. */ @@ -64,43 +48,6 @@ public class Util { public static final Metadata.Key METADATA_KEY = ProtoUtils.keyForProto(Messages.SimpleContext.getDefaultInstance()); - /** - * Picks an unused port. - */ - public static int pickUnusedPort() { - try { - ServerSocket serverSocket = new ServerSocket(0); - int port = serverSocket.getLocalPort(); - serverSocket.close(); - return port; - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - /** - * Load a file from the resources folder. - * - * @param name name of a file in src/main/resources/certs. - */ - public static File loadCert(String name) throws IOException { - InputStream in = Util.class.getResourceAsStream("/certs/" + name); - File tmpFile = File.createTempFile(name, ""); - tmpFile.deleteOnExit(); - - BufferedWriter writer = new BufferedWriter(new FileWriter(tmpFile)); - try { - int b; - while ((b = in.read()) != -1) { - writer.write(b); - } - } finally { - writer.close(); - } - - return tmpFile; - } - /** Assert that two messages are equal, producing a useful message if not. */ public static void assertEquals(MessageLite expected, MessageLite actual) { if (expected == null || actual == null) { @@ -129,26 +76,4 @@ public static void assertEquals(List expected, } } } - - /** - * Returns a SSLSocketFactory which uses the certificate specified in certChainFile. - */ - public static SSLSocketFactory getSslSocketFactoryForCertainCert(File certChainFile) - throws Exception { - KeyStore ks = KeyStore.getInstance("JKS"); - ks.load(null, null); - CertificateFactory cf = CertificateFactory.getInstance("X.509"); - X509Certificate cert = (X509Certificate) cf.generateCertificate( - new BufferedInputStream(new FileInputStream(certChainFile))); - X500Principal principal = cert.getSubjectX500Principal(); - ks.setCertificateEntry(principal.getName("RFC2253"), cert); - - // Set up trust manager factory to use our key store. - TrustManagerFactory trustManagerFactory = - TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - trustManagerFactory.init(ks); - SSLContext context = SSLContext.getInstance("TLS"); - context.init(null, trustManagerFactory.getTrustManagers(), null); - return context.getSocketFactory(); - } } diff --git a/interop-testing/src/test/java/io/grpc/testing/integration/Http2NettyTest.java b/interop-testing/src/test/java/io/grpc/testing/integration/Http2NettyTest.java index 49b027fa7b7..05643b904ef 100644 --- a/interop-testing/src/test/java/io/grpc/testing/integration/Http2NettyTest.java +++ b/interop-testing/src/test/java/io/grpc/testing/integration/Http2NettyTest.java @@ -32,6 +32,7 @@ package io.grpc.testing.integration; import io.grpc.ChannelImpl; +import io.grpc.testing.TestUtils; import io.grpc.transport.netty.GrpcSslContexts; import io.grpc.transport.netty.NettyChannelBuilder; import io.grpc.transport.netty.NettyServerBuilder; @@ -50,7 +51,7 @@ */ @RunWith(JUnit4.class) public class Http2NettyTest extends AbstractTransportTest { - private static int serverPort = Util.pickUnusedPort(); + private static int serverPort = TestUtils.pickUnusedPort(); /** Starts the server with HTTPS. */ @BeforeClass @@ -58,7 +59,7 @@ public static void startServer() { try { startStaticServer(NettyServerBuilder.forPort(serverPort) .sslContext(GrpcSslContexts.forServer( - Util.loadCert("server1.pem"), Util.loadCert("server1.key")).build())); + TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key")).build())); } catch (IOException ex) { throw new RuntimeException(ex); } @@ -76,7 +77,8 @@ protected ChannelImpl createChannel() { = InetAddress.getByAddress("foo.test.google.fr", new byte[] {127, 0, 0, 1}); return NettyChannelBuilder .forAddress(new InetSocketAddress(address, serverPort)) - .sslContext(GrpcSslContexts.forClient().trustManager(Util.loadCert("ca.pem")).build()) + .sslContext(GrpcSslContexts.forClient().trustManager( + TestUtils.loadCert("ca.pem")).build()) .build(); } catch (Exception ex) { throw new RuntimeException(ex); diff --git a/interop-testing/src/test/java/io/grpc/testing/integration/Http2OkHttpTest.java b/interop-testing/src/test/java/io/grpc/testing/integration/Http2OkHttpTest.java index 57d1d39c00c..b0885fc408e 100644 --- a/interop-testing/src/test/java/io/grpc/testing/integration/Http2OkHttpTest.java +++ b/interop-testing/src/test/java/io/grpc/testing/integration/Http2OkHttpTest.java @@ -32,6 +32,7 @@ package io.grpc.testing.integration; import io.grpc.ChannelImpl; +import io.grpc.testing.TestUtils; import io.grpc.transport.netty.GrpcSslContexts; import io.grpc.transport.netty.NettyServerBuilder; import io.grpc.transport.okhttp.OkHttpChannelBuilder; @@ -48,7 +49,7 @@ */ @RunWith(JUnit4.class) public class Http2OkHttpTest extends AbstractTransportTest { - private static int serverPort = Util.pickUnusedPort(); + private static int serverPort = TestUtils.pickUnusedPort(); /** Starts the server with HTTPS. */ @BeforeClass @@ -56,7 +57,7 @@ public static void startServer() throws Exception { try { startStaticServer(NettyServerBuilder.forPort(serverPort) .sslContext(GrpcSslContexts.forServer( - Util.loadCert("server1.pem"), Util.loadCert("server1.key")).build())); + TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key")).build())); } catch (IOException ex) { throw new RuntimeException(ex); } @@ -72,7 +73,8 @@ protected ChannelImpl createChannel() { OkHttpChannelBuilder builder = OkHttpChannelBuilder.forAddress("127.0.0.1", serverPort) .overrideHostForAuthority("foo.test.google.fr"); try { - builder.sslSocketFactory(Util.getSslSocketFactoryForCertainCert(Util.loadCert("ca.pem"))); + builder.sslSocketFactory(TestUtils.getSslSocketFactoryForCertainCert( + TestUtils.loadCert("ca.pem"))); } catch (Exception e) { throw new RuntimeException(e); } diff --git a/testing/src/main/java/io/grpc/testing/TestUtils.java b/testing/src/main/java/io/grpc/testing/TestUtils.java index 80e494da93c..6d305edf457 100644 --- a/testing/src/main/java/io/grpc/testing/TestUtils.java +++ b/testing/src/main/java/io/grpc/testing/TestUtils.java @@ -38,10 +38,26 @@ import io.grpc.ServerInterceptor; import io.grpc.Status; +import java.io.BufferedInputStream; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.net.ServerSocket; +import java.security.KeyStore; +import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; import java.util.Arrays; import java.util.HashSet; import java.util.Set; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManagerFactory; +import javax.security.auth.x500.X500Principal; + /** * Common utility functions useful for writing tests. */ @@ -59,7 +75,7 @@ public ServerCall.Listener interceptCall(String method, ServerCall call, final Metadata.Headers requestHeaders, ServerCallHandler next) { - ServerCall.Listener listener = next.startCall(method, + return next.startCall(method, new SimpleForwardingServerCall(call) { boolean sentHeaders; @@ -84,10 +100,69 @@ public void close(Status status, Metadata.Trailers trailers) { super.close(status, trailers); } }, requestHeaders); - return listener; } }; } + + /** + * Picks an unused port. + */ + public static int pickUnusedPort() { + try { + ServerSocket serverSocket = new ServerSocket(0); + int port = serverSocket.getLocalPort(); + serverSocket.close(); + return port; + } catch (IOException e) { + throw new RuntimeException(e); + } + } + + /** + * Load a file from the resources folder. + * + * @param name name of a file in src/main/resources/certs. + */ + public static File loadCert(String name) throws IOException { + InputStream in = TestUtils.class.getResourceAsStream("/certs/" + name); + File tmpFile = File.createTempFile(name, ""); + tmpFile.deleteOnExit(); + + BufferedWriter writer = new BufferedWriter(new FileWriter(tmpFile)); + try { + int b; + while ((b = in.read()) != -1) { + writer.write(b); + } + } finally { + writer.close(); + } + + return tmpFile; + } + + /** + * Returns a SSLSocketFactory which uses the certificate specified in certChainFile. + */ + public static SSLSocketFactory getSslSocketFactoryForCertainCert(File certChainFile) + throws Exception { + KeyStore ks = KeyStore.getInstance("JKS"); + ks.load(null, null); + CertificateFactory cf = CertificateFactory.getInstance("X.509"); + X509Certificate cert = (X509Certificate) cf.generateCertificate( + new BufferedInputStream(new FileInputStream(certChainFile))); + X500Principal principal = cert.getSubjectX500Principal(); + ks.setCertificateEntry(principal.getName("RFC2253"), cert); + + // Set up trust manager factory to use our key store. + TrustManagerFactory trustManagerFactory = + TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + trustManagerFactory.init(ks); + SSLContext context = SSLContext.getInstance("TLS"); + context.init(null, trustManagerFactory.getTrustManagers(), null); + return context.getSocketFactory(); + } + private TestUtils() {} } diff --git a/interop-testing/src/main/resources/certs/README b/testing/src/main/resources/certs/README similarity index 100% rename from interop-testing/src/main/resources/certs/README rename to testing/src/main/resources/certs/README diff --git a/interop-testing/src/main/resources/certs/badclient.key b/testing/src/main/resources/certs/badclient.key similarity index 100% rename from interop-testing/src/main/resources/certs/badclient.key rename to testing/src/main/resources/certs/badclient.key diff --git a/interop-testing/src/main/resources/certs/badclient.pem b/testing/src/main/resources/certs/badclient.pem similarity index 100% rename from interop-testing/src/main/resources/certs/badclient.pem rename to testing/src/main/resources/certs/badclient.pem diff --git a/interop-testing/src/main/resources/certs/badserver.key b/testing/src/main/resources/certs/badserver.key similarity index 100% rename from interop-testing/src/main/resources/certs/badserver.key rename to testing/src/main/resources/certs/badserver.key diff --git a/interop-testing/src/main/resources/certs/badserver.pem b/testing/src/main/resources/certs/badserver.pem similarity index 100% rename from interop-testing/src/main/resources/certs/badserver.pem rename to testing/src/main/resources/certs/badserver.pem diff --git a/interop-testing/src/main/resources/certs/ca-openssl.cnf b/testing/src/main/resources/certs/ca-openssl.cnf similarity index 100% rename from interop-testing/src/main/resources/certs/ca-openssl.cnf rename to testing/src/main/resources/certs/ca-openssl.cnf diff --git a/interop-testing/src/main/resources/certs/ca.key b/testing/src/main/resources/certs/ca.key similarity index 100% rename from interop-testing/src/main/resources/certs/ca.key rename to testing/src/main/resources/certs/ca.key diff --git a/interop-testing/src/main/resources/certs/ca.pem b/testing/src/main/resources/certs/ca.pem similarity index 100% rename from interop-testing/src/main/resources/certs/ca.pem rename to testing/src/main/resources/certs/ca.pem diff --git a/interop-testing/src/main/resources/certs/client.key b/testing/src/main/resources/certs/client.key similarity index 100% rename from interop-testing/src/main/resources/certs/client.key rename to testing/src/main/resources/certs/client.key diff --git a/interop-testing/src/main/resources/certs/client.pem b/testing/src/main/resources/certs/client.pem similarity index 100% rename from interop-testing/src/main/resources/certs/client.pem rename to testing/src/main/resources/certs/client.pem diff --git a/interop-testing/src/main/resources/certs/server0.key b/testing/src/main/resources/certs/server0.key similarity index 100% rename from interop-testing/src/main/resources/certs/server0.key rename to testing/src/main/resources/certs/server0.key diff --git a/interop-testing/src/main/resources/certs/server0.pem b/testing/src/main/resources/certs/server0.pem similarity index 100% rename from interop-testing/src/main/resources/certs/server0.pem rename to testing/src/main/resources/certs/server0.pem diff --git a/interop-testing/src/main/resources/certs/server1-openssl.cnf b/testing/src/main/resources/certs/server1-openssl.cnf similarity index 100% rename from interop-testing/src/main/resources/certs/server1-openssl.cnf rename to testing/src/main/resources/certs/server1-openssl.cnf diff --git a/interop-testing/src/main/resources/certs/server1.key b/testing/src/main/resources/certs/server1.key similarity index 100% rename from interop-testing/src/main/resources/certs/server1.key rename to testing/src/main/resources/certs/server1.key diff --git a/interop-testing/src/main/resources/certs/server1.pem b/testing/src/main/resources/certs/server1.pem similarity index 100% rename from interop-testing/src/main/resources/certs/server1.pem rename to testing/src/main/resources/certs/server1.pem