Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-344

Bootable JAR - SSL 8443 port doesn't work by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker 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!";
         }
      }
      
              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

            jdenise@redhat.com Jean Francois Denise
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: