代码之家  ›  专栏  ›  技术社区  ›  Ashish Agarwal

如何生成自签名并配置SSL?

  •  0
  • Ashish Agarwal  · 技术社区  · 17 年前

    3) 如何在SSL上仅配置登录页面? 4) 什么是openSSL,如何在应用程序中使用?

    2 回复  |  直到 17 年前
        2
  •  0
  •   guilhebl    12 年前

    1. 在以下位置创建一个名为“userauth”指令的安全领域: http://docs.oracle.com/cd/E18930_01/html/821-2435/ggkuk.html

    2. <security-constraint>   
          <display-name>ConstraintSSL</display-name>
          <web-resource-collection>
              <web-resource-name>protected</web-resource-name>
              <description/>
              <url-pattern>/login/*</url-pattern>
              <url-pattern>/login.*</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
              <http-method>HEAD</http-method>
              <http-method>PUT</http-method>
              <http-method>OPTIONS</http-method>
              <http-method>TRACE</http-method>
              <http-method>DELETE</http-method>
          </web-resource-collection>
      
          <user-data-constraint>        
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
          </user-data-constraint>        
      </security-constraint>
      
      
      <security-role>
          <description/>
          <role-name>USERS</role-name>
      </security-role>
      <security-role>
          <description/>
          <role-name>ADMINISTRATORS</role-name>
      </security-role>