Certificate and SSL connection on Wildfly

0

I followed this answer to this question in the OS to configure SSL: how to configure ssl in wildfly 8.2.0 server?

Before this configuration, access to the 8443 port was not possible, which is the port that connects to the applications in a secure way.

But now whenever I access an application from the 8443 port it appears to download a file that I do not know what it is, but I believe the certificate is an SSL certificate that we should put on the client. I do not know what to do with this file, are there any more steps to configure SSL?

The name of the file is TecnologiaExemplo that has not yet been saved, but as we change the application in the URL a new download with a different suggestion of filename appears.

    
asked by anonymous 30.10.2015 / 12:18

1 answer

1

Resolved, to access in a "safe" way, that is, without a certificate signed by a company issuing SSL certificates, was included in the URL https:// and not only localhost:8443/aplicacao .

After that in my application web.xml I put the following XML to redirect from HTTP to HTTPS and there is no problem asking you to download this file:

<security-constraint>
    <web-resource-collection>
        <web-resource-name>WEB_APPLICATION_NAME</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

Where WEB_APPLICATION_NAME is the name of your application.

    
30.10.2015 / 13:20