jsf + https

0

Chcę żeby wszystkie strony mojej aplikacji działały po** https**.
Edytowałem więc web.xml, ale po dodaniu security-constraint żąda ode mnie jakiegoś hasła i jak go nie podam(bo nie znam) to wywala mi błąd 401.
Czemu pyta mnie o hasło?
Skąd mam je znać?
Co zrobić, żeby o to hasło nie pytało a strona działała po https?

Plik web.xml mam następujący

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
    **<security-constraint>
        <web-resource-collection>
            <web-resource-name>SecureConnection</web-resource-name>
            <url-pattern>/faces/*</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
        </web-resource-collection>
        <auth-constraint/>
        <user-data-constraint>
            <description/>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>**
</web-app>

0

https nie ma nic wspolnego z JSF ani uzyta technlogia do tworzenia twojej aplikacji. Musisz stworzyc certyfikat i skonfigurowac twoj Serwer aplikacyjny.

1 użytkowników online, w tym zalogowanych: 0, gości: 1