-
1. Re: Configuring connectors in WildFly-8.2.0
wdfink Dec 22, 2014 9:46 AM (in response to valsaraj007)What did you change in AS7 in the provided configuration and what you try to achieve?
A bit more information will make is easier to help.
-
2. Re: Configuring connectors in WildFly-8.2.0
valsaraj007 Dec 22, 2014 10:31 PM (in response to wdfink)This is my configuration in AS 7:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8443"/>
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
<ssl key-alias="xxxxxx" password="app" certificate-key-file="${jboss.server.config.dir}/appdev-webserver.p12" protocol="TLSv1" verify-client="false" keystore-type="PKCS12"/>
</connector>
<connector name="ajp" protocol="AJP/1.3" scheme="https" socket-binding="ajp"/>
HTTPS connector is added and HTTP connector will redirect to HTTPS port. When I checked WildFly documentation, there is listeners and security realms. I want to migrate from AS 7 to WildFly, so need to configure this in WildFly. My certificate is PKCS12 and how can I configure SSL in WildFly? Also need to redirect from HTTP to HTTPS.
-
3. Re: Configuring connectors in WildFly-8.2.0
ctomc Dec 23, 2014 5:30 AM (in response to valsaraj007)Take a look at default standalone.xml that ships with wildfly 8.
The section / subsystem you are interested in is now undertow which replaces web subsystem.
if you take default config all you need is to add https-listener.
take a look at https://docs.jboss.org/author/display/WFLY8/Undertow+%28web%29+subsystem+configuration
and how to configure security realm Examples - WildFly 8 - Project Documentation Editor
-
4. Re: Configuring connectors in WildFly-8.2.0
valsaraj007 Dec 24, 2014 12:16 AM (in response to ctomc)Hi Thomaz,
I found this but got error when I used the certificate of type PKCS12. In AS 7, we can specify the type and it will work. I want to know what is the similar attribute in WildFly.
Thanks!
-
5. Re: Configuring connectors in WildFly-8.2.0
valsaraj007 Dec 26, 2014 5:06 AM (in response to valsaraj007)I have converted to WildFly model by creating a realm called SslRealm and used that in HTTPS listener. PKCS12 certificate is used by specifying ssl like this:
<ssl protocol="TLSv1">
<keystore path="cert.p12" relative-to="jboss.server.config.dir" keystore-password="xxxx" keystore-type="pkcs12"/>
</ssl>
-
6. Re: Configuring connectors in WildFly-8.2.0
aparvatham Jan 22, 2015 11:16 AM (in response to valsaraj007)I have the below configuration in jboss 5.1.0. I would like to know the similar attributes for these in wildly-8.2.0 ?
SSLCertificateKeyFile="xxx"
SSLCertificateFile="xxxx"
SSLCertificateChainFile="xxx"
protocols="TLSv1,TLSv1.1,TLSv1.2"
-
7. Re: Configuring connectors in WildFly-8.2.0
valsaraj007 Jan 22, 2015 11:36 PM (in response to aparvatham)You can configure keystore like this:
<ssl>
<keystore path=
"server.keystore"
relative-to=
"jboss.server.config.dir"
keystore-password=
"keystore_password"
alias=
"server"
key-password=
"key_password"
/>
</ssl>
To Generate a KeyStore: https://docs.oracle.com/cd/E19509-01/820-3503/ggfen/index.html
-
8. Re: Configuring connectors in WildFly-8.2.0
devopstechie May 10, 2019 5:56 AM (in response to valsaraj007)valsaraj007, i still didn't get how to redirect from http to https in this scenario? can you quickly help. I am stuck on this point since morning.