I have a problem with the configuration of my EC2 instance with the preinstalled wildfly 10 and Apache-Webserver. With my configuration, you can see it below, I am not able to access my Application with secured https connection.
So what did I do? First I got a free SSL certificate from startssl.com. Next I followed the instructions to configure my local wildfly installation for testing purpose (Bitnami-Guide: https://docs.bitnami.com/aws/infrastructure/wildfly/#how-to-create-an-ssl-certificate-for-wildfly).
Until here everything works fine. My application is only accessible with https://localhost:8443/MyApp.... signed with my domain certificate.
Now I tried to configure my EC2 instance with exactly the same configuration and all the additional configuration mentioned in guide linked above.
Here it is:
< Location />
ProxyPass https:/ /localhost:8443/
ProxyPassReverse https:/ /localhost:8443/
< security-realm name="UndertowRealm">
< keystore path="my-domain.jks" relative-to="jboss.server.config.dir" keystore-password="storePW" alias="default" key-password="keyPW"/>
< http-listener name="default" socket-binding="http" proxy-address-forwarding="true"/>
< https-listener name="https" security-realm="UndertowRealm" socket-binding="https"/>
I also enabled the transport-guarantee "CONFIDENTIAL" in my web.xml.
My Problems in short after configuration:
- It seems like the whole configuration is ignored (maybe by the apache?)
- I can access my app on ec2 with http & https (but https only with the default example.com certificate and not mine)
Unfortunately, I'm unable to continue at this point
Thank you for all your answers in advance!