-
Bug
-
Resolution: Not a Bug
-
Blocker
-
None
-
None
RFE jira: EAP7-1385
SSL 8443 port doesn't work by default on bootable jar
Steps to reproduce:
- start bootable jar (hollow jar) with jaxrs-server, microprofile-config, datasources, h2-default-datasource layers (you can check the same on WF)
- deploy deployment with this simple deployment (ssl-war.war
):
@Path("/ssl") public class SslResource { @Path("/hello") @GET public String hello() { return "Hello World!"; } }
- Make HTTP call by this client (use this client.truststore):
truststore = KeyStore.getInstance("jks"); try (InputStream in = new FileInputStream("/home/path/client.truststore")) { truststore.load(in, "123456".toCharArray()); } resteasyClientBuilder = (ResteasyClientBuilder) ClientBuilder.newBuilder(); resteasyClientBuilder.setIsTrustSelfSignedCertificates(false); resteasyClientBuilder = resteasyClientBuilder.disableTrustManager(); client = resteasyClientBuilder.trustStore(truststore).build(); Response response = client.target("https://127.0.0.1:8443/ssl-war/ssl/hello").request().get(); System.out.println("Response status: " + response.getStatus() + " (expected is 200)"); if (response.getStatus() == 200) { System.out.println("Output: " + response.readEntity(String.class)); }
- See the results:
- "Connection refused (Connection refused)" on bootable jar
- 200 response code on WF
cc: fburzigo, yborgess1@redhat.com, asoldano, rsigal@redhat.com