SSL in Wildfly 8.2.0

Since wildfly uses undertow the configuration of SSL has changed. You can follow these steps to get SSL running:

  • Create a keystore with keys:

You need to replace “localhost” with your domain name.

NOTE: Your browser will complain that the connection is unsecure because we have no officially signed certificate. Look for a tutorial to create a keypair and a certificate sign request (csr) that you have to send to a certification authority (ca).

  • Configure the SslRealm:

  •  And add a listener:

Now you should be able to access your wildfly under https://localhost:8433/.

5 thoughts on “SSL in Wildfly 8.2.0

  1. I have followed above configuration for my website. It is working in firefox. but when opening in chrome getting errors like
    the identity of the website has not verified. Please tell how to resolve it?

    • See the note stated in the post. If you want to get rid of these messages – you have to click extra buttons to get to the site, don’t you? – you have to buy an officially signed certificate from the the certificate authoritiy of your choice. I don’t want to advertise something but I buy certificates at if I really have to. Background is that all browsers come with a set of root certificates with which a certificate used by a website has to be signed with. Of course there can be subcertificates or intermediate certificates but that have to be connected somehow with the certificates in the browsers. I think it’s quite expensive to get a root certificates into firefox, chrome, opera, ie, … If you don’t want to pay you can create your own root certificate and simply import in your local browser. Of course all other users have to do the same. See my website and scroll down to SSL. There I offer my root certifacte I’m using for all my SSL pages. This can be imported in every browser. Search the internet for howtos. I think I haven’t written one yet.

  2. i am try to do same, after changing teh same setting in my wildfly 8.2 version it getting crash error is this showing :(MSC service thread 1-4) JBA S017519: Undertow HTTP listener default listening on / 11:29:58,384 ERROR [] (MSC service thread 1-4) MSC0000 01: Failed to start service lRealm.key-manager: org.jboss.msc.service.StartException in service jboss.server JBAS021002: The KeyS tore can not be found at C:\wildfly-8.2.1.Final\standalone\configuration/C:\wild fly-8.2.1.Final \standalone\configuration\keystore.jks”

    please assist me ,it little urgent for me.

    • Hi! You are using backslashes somewhere in your configuration. The path in the configuration is not fully qualified. Seethe exception message again:
      “C:\wildfly-8.2.1.Final\standalone\configuration/C:\wild fly-8.2.1.Final \standalone\configuration\keystore.jks”
      This can’t work. Only use slashes / in the configuration file and replace your entry with simply keystore.jks

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.