@Test public void testCrlInvalidPath() throws Exception { HttpClientOptions clientOptions = new HttpClientOptions(); clientOptions.setTrustOptions(Trust.SERVER_PEM_ROOT_CA.get()); clientOptions.setSsl(true); clientOptions.addCrlPath("/invalid.pem"); try { vertx.createHttpClient(clientOptions); fail("Was expecting a failure"); } catch (VertxException e) { assertNotNull(e.getCause()); assertEquals(NoSuchFileException.class, e.getCause().getCause().getClass()); } }
options.addCrlPath("tls/root-ca/crl.pem"); options.setTrustOptions(clientTrust.get()); options.setKeyCertOptions(clientCert.get()); for (String suite: enabledCipherSuites) {
options.setTrustOptions(clientTrust); options.setKeyCertOptions(clientCert); for (String suite: clientEnabledCipherSuites) {
options.setIdleTimeout(idleTimeout); options.setKeyCertOptions(keyCertOptions); options.setTrustOptions(trustOptions); options.addEnabledCipherSuite(enabledCipher); options.setConnectTimeout(connectTimeout);
@Test public void testCrlInvalidPath() throws Exception { HttpClientOptions clientOptions = new HttpClientOptions(); clientOptions.setTrustOptions(Trust.SERVER_PEM_ROOT_CA.get()); clientOptions.setSsl(true); clientOptions.addCrlPath("/invalid.pem"); try { vertx.createHttpClient(clientOptions); fail("Was expecting a failure"); } catch (VertxException e) { assertNotNull(e.getCause()); assertEquals(NoSuchFileException.class, e.getCause().getCause().getClass()); } }
options.addCrlPath("tls/root-ca/crl.pem"); options.setTrustOptions(clientTrust.get()); options.setKeyCertOptions(clientCert.get()); for (String suite: enabledCipherSuites) {
options.setIdleTimeout(idleTimeout); options.setKeyCertOptions(keyCertOptions); options.setTrustOptions(trustOptions); options.addEnabledCipherSuite(enabledCipher); options.setConnectTimeout(connectTimeout);
options.setTrustOptions(clientTrust); options.setKeyCertOptions(clientCert); for (String suite: clientEnabledCipherSuites) {