Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Alpha8
    • Fix Version/s: core_1.0.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      I couldn't find anything in the documentation that mentioned how to configure SSL / HTTPS (other than the port that the container serves it from). I ended up with a custom Main class with this implementation:

      Container container = new Container();
      container.fraction(ManagementFraction.createDefaultFraction()
          .securityRealm(new SecurityRealm("SSLRealm")
              .sslServerIdentity(new SslServerIdentity<>()
                  .keystorePath("/path/to/keystore.ks")
                  .keystorePassword("password")
                  .alias("my-alias")
              )
          )
      );
      
      container.fraction(UndertowFraction.createDefaultFraction()
          .server("ssl-server", server -> server.httpsListener(new HttpsListener("https")
              .securityRealm("SSLRealm")
              .socketBinding("https")
          )
      ));
      
      container.start();
      

      It'd be nice to avoid the boilerplate stuff and drive the config from swarm properties (a la spring boot SSL configuration).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                jamesnetherton James Netherton
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: