动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
   安全 → 阅读文章
  

 在IBM Workplace Collaboration Services上启用SSL端到端

作者来源:IBM  
阅读 数 626 人次 , 2006-3-19 2:25:00 

SSL(安全套接字层)是一种用来在 Web 和其他网络上传输机密信息的协议。SSL 使用私钥对数据进行加密,然后在加密状态下传送数据。随后在目标服务器上使用相同的私钥对数据进行解密。对于许多环境,SSL 是整体安全策略的一个重要组件。(您可能已经注意到了,那些需要 SSL 连接的站点的 URL 通常是以 HTTPS 开始的,而不是 HTTP。)

作为发行 IBM Workplace Collaboration Services 2.5 前进行的测试的一部分,我们在服务器上配置了 SSL 安全性,以便在受保护的环境下测试 IBM Workplace Collaboration Services 的通讯功能。这样做是想确保 IBM Workplace Collaboration Services 在启用 SSL 的情况下和没有启用 SSL 的情况下都能正常运行。我们将运行脚本并对启用 SSL 的服务器进行测试,然后在没有 SSL 的情况下运行相同的测试。为实现这一点,我们为 IBM Workplace Collaboration Services 设置了一个完整的 SSL 环境。

本文回顾了我们设置 IBM Workplace Collaboration Services SSL 环境的经验。这里提供的指导是建立在最初由 Workplace Collaboration Services Infrastructure 团队开发的内部配置过程基础之上的。我们从解释如何在 HTTP 服务器上启用 SSL 开始。然后讨论如何在 Workplace Collaboration Services 自身中启用 SSL。最后通过描述如何设置最简单的测试来验证新 SSL 连接,以此结束本文。我们的目的是帮助有经验的系统管理员(特别是那些具有 SSL 经验的系统管理员)使用 SSL 设置其 Workplace Collaboration Services 站点。

我们的过程是以我们在 Windows 2000 服务器上设置 SSL 的经验为基础的。这些指导过程也适用于 AIX 和 Linux 服务器,只是在文件名和位置上稍微有些区别。(有关这些区别的帮助信息,请查阅平台文档。)

在 HTTP 服务器上启用 SSL

为 Workplace Collaboration Services 设置 SSL 的第一步是创建密钥,服务器利用此密钥进行互相验证。可以利用 IBM 的 ikeyman 工具实现这一点,在安装 Workplace Collaboration Services 随附的 IBM HTTP 服务器时将安装此工具。

创建新密钥

要创建密钥和相关的数据库和文件,请遵循下列步骤。(这些说明假设 Workplace Collaboration Services 服务器位于不受保护的环境中。要将 Workplace Collaboration Services 与现有的 SSL 环境集成,请转至本文后面的“将 Workplace Collaboration Services 服务器集成到现有 SSL 密钥数据库中”小节。)

  1. 如果 HTTP 服务器当前正在运行,请停止它。
  2. 创建一个名为 ssl\keys 的文件夹。例如 <IHS_root>\ssl\keys。
  3. 启动 ikeyman 实用程序。从 Windows Start 菜单中选择 Programs - IBM HTTP Server - Start Key Management Utility。这将打开 Key Management 菜单。
  4. 选择 Key Database File - New,创建一个新密钥数据库,然后输入以下信息(参见图 1):

    Key Database Type: CMS key database file

    File Name: key.kdb

    Location: <IHS ROOT>\ssl\keys

    图 1. 创建新的密钥数据库文件

    创建新的密钥数据库文件

  5. 单击 OK 保存新的密钥数据库文件。
  6. 选择 Key Ring 的口令。要完成这个操作,请输入口令并确认口令。
  7. 选中“Set expiration time?”复选框(可选的),并输入时间间隔(天),用户必需在这段时间间隔之后为 Key Ring 选择一个新的口令。默认时间间隔为 60 天。(这就是我们用来进行测试的设置。)
  8. 选择“Stash the password to a file?”复选框(参见图 2) 。

    图 2. 输入 Key Ring 口令信息

    输入 Key Ring 口令信息

    这使得 HTTP 服务器能够利用口令获得对存储在密钥存储器中的任意证书的访问权。
  9. 单击 OK。您应该看到一个信息对话框,表示口令已经被加密并保存在 key.sth 文件中。关闭此对话框。
  10. 在 Windows Explorer 中,确认在 <IHS root>/ssl/keys 中是否有下列 4 个文件:key.kdb、key.rdb、key.sth 和 key.crl。

创建自签名数字证书

要创建自签名数字证书,请转至 Key Management 菜单,然后单击 Signer Certificates。(该选项刚好位于 CA 列表上。)然后选择 Personal Certificates。如果还没有创建任何个人证书,应该会看到一个空列表,如图 3 所示:



图 3. 个人证书

个人证书

单击 New Self-Signed 按钮,将下列信息输入到图 4 中:

  • Key Label:可以选择任意名称。在我们的例子中,输入的是 self-signed。
  • Version:选择 X509 V3。
  • Key Size:选择 1024。
  • Common Name:输入 Web 服务器的名称。该项必须与用户将输入其浏览器的服务器名相匹配。 例如,如果将通过 www 或 w3 地址访问服务器,则该名称必须出现在 Common Name 中,例如,www.sales.workplace.acme.com。
  • Organization:输入组织的名称,例如,Acme Sales Team。
  • Country:输入您的国家。
  • Validity Period:证书有效的时间段。检查公司关于证书的安全策略,以确保所选择的时间段符合您的规则。默认值为 365 天(1 年)。



图 4. 输入自签名证书信息

输入自签名证书信息

该对话框的其余字段是可选的。但是我们建议您填写尽可能多的字段。然后单击 OK。您应该可以看到列表中新创建的数字证书(参见图 5):



图 5. 新证书

新证书

关闭 Key Manager 实用程序。

将 Workplace Collaboration Services 服务器集成到现有 SSL 密钥数据库中

在前一小节中,我们讨论了如何为 Workplace Collaboration Services 站点创建新的 SSL 密钥文件。这一小节将描述如何将 Workplace Collaboration Services 合并到现有 SSL 环境中。

在您的 HTTP 服务器上,转到 <IHS_ROOT> 文件夹,如果不存在名为 ssl\keys 的文件夹,则创建一个这样的文件夹。(默认情况下,<IHS_ROOT> 目录为 C:\Program Files\IBMHttpServer。如果在安装 WebSphere Application Server 时,选择的是默认设置,则新创建的文件夹将为 C:\Program Files\IBMHttpServer\ssl\keys。)

从当前的 SSL 密钥数据库管理员那里获取下列文件(假设 ikeyman 是用于创建密钥和数据库的):<filename>.sth、<filename>.kdb、<filename>.rdb 和 <filename>.crl。文件名并不是很关键,关键的是那些将文件标识为 ikeyman 的扩展名:

  • <filename>.kdb 是密钥数据库文件。该文件存储了个人证书、个人证书请求和签名者证书。
  • <filename>.sth 是隐藏文件。该文件存储了密钥数据库口令的“obfuscated”版本。此文件的主要名称与相关联的 .kdb 文件的主要名称是相同的。它还存储了私钥,如果有的话。
  • <filename>.rdb 是请求数据库文件。这是在创建 .kdb 密钥数据库文件时自动创建的。该文件的主要名称与相关 .kdb 文件的主要名称是相同的。该文件包含未发送的证书请求,以及尚未从证书认证中心 (Certificate Authority,CA) 返回的证书请求。当证书从 CA 返回时,会搜索 .rdb 文件是否与证书请求匹配(基于公用密钥)。如果发现它们匹配,则接收此证书,并从 .rdb 文件中删除相应的证书请求。如果发现不匹配,则接收证书的尝试会遭到拒绝。证书请求中包括公用名称、组织、街道地址和请求时指定的其他信息,以及与请求相关的公钥和私钥。
  • <filename>.crl 是证书撤消列表文件。该文件通常因为某个理由或别的理由而撤消的证书的列表。但是,ikeyman 不支持证书撤消列表,因此它是空的。







更新 HTTP 配置文件

接下来需要更新 HTTP 服务器配置文件来使用 SSL。下列过程调整了用于 IBM HTTP 服务器的文件。如果您使用的是其他服务器,请查阅产品文档以找到实现 SSL 的正确方法。

编辑 httpd.conf 文件之前,请进行备份,以便在出现错误的情况下可以还原。然后在您喜欢的文本编辑器中打开 httpd.conf 文件(该文件位于 <IHS_ROOT>\conf 文件夹下),将下列行追加到文件结尾处(这些行表示将为 IBM HTTP 服务器 1.3.26 添加的设置):

LoadModule ibm_ssl_module modules/IBMModuleSSL128.dll
 Listen 80
   Listen 443
   FileETag none
   <VirtualHost HOST_MACHINE:443>
    ServerName HOST_MACHINE
    SSLEnable
    SSLV2Timeout 100
    SSLV3Timeout 1000
    SSLClientAuth none
   </VirtualHost>
   SSLDisable


使用 IBM HTTP 服务器的全限定主机名替换 HOST_MACHINE 的所有实例,例如,intlcontact.sales.acme.com。由此得到的 httpd.conf 文件应该在文件的末尾包含下列文本,以便系统可以使用 intlcontact.sales.acme.com HTTP 服务器。第一个例子适用于 IBM HTTP 服务器 1.3.26 的 Windows 上的自签名证书;第二个例子适用于 IBM HTTP 服务器 2.0.42。

第一个例子:

   LoadModule ibm_ssl_module modules/IBMModuleSSL128.dll
   Listen 80
   Listen 443
   FileETag none
   <VirtualHost intlcontact.sales.acme.com:443>
    ServerName intlcontact.sales.acme.com
     SSLEnable
     SSLClientAuth none
     Keyfile "c:\program files\ibmhttpserver\ssl\keys\key.kdb"
       SSLStashfile "c:\program files\ibmhttpserver\ssl\keys\keyt.sth"
       SSLV2Timeout 100
      SSLV3Timeout 1000
   </VirtualHost>
   SSLDisable


第二个例子:

LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
Listen 443
     <VirtualHost intlcontact.sales.acme.com:443>
      ServerName intlcontact.sales.acme.com
       SSLEnable
       SSLClientAuth none
       Keyfile "c:\program files\ibmhttpserver\ssl\keys\key.kdb"
       SSLStashfile "c:\program files\ibmhttpserver\ssl\keys\key.sth"
      ErrorLog "c:\program files\ibmhttpserver\logs\sslerror.log"
      TransferLog "c:\program files\ibmhttpserver\logs\sslaccess.log"
   </VirtualHost>
     SSLDisable


密钥文件 path/name 组合是先前设置的 path/name,正如在前一小节“在 HTTP 服务器上启用 SSL”中所描述的那样。

完成这些更改后,保存并关闭 httpd.conf。然后重新启动 HTTP 服务器,使这些更改生效。要在 Windows 下实现这一点,请打开 Services 窗口,重新启动 IBM HTTP Server 服务。重新启动 HTTP 服务器之后,可以通过在浏览器屏幕上键入 URL https://<yourservername> 来测试服务器是否仍然在运行,确保能看到带有锁定图标的 IBM HTTP Server 配置屏幕,该图标表明这是一个安全的 SSL 会话。如果没有,请检查对 http.conf 文件所做的更改是否有输入错误。如果这样还不能解决问题,请查阅产品文档。







将证书导入到 WebSphere Application Server 信任存储中

必须将所创建的 IBM HTTP 服务器证书导入到 IBM WebSphere Application Server 服务器信任存储和 WebSphere Application Server Java 信任存储中。Workplace Team Collaboration 将同时使用 WebSphere Portal Server 的 IBM WebSphere Portal Content Publishing (WPCP) 组件和 IBM WebSphere Portal Document Manager (PDM) 组件。必须将用来服务于 Workplace Collaboration Services 的所有 IBM HTTP 服务器的 HTTP 服务器证书作为签名者证书导入到任意 Workplace Collaboration Services 的 Jave 信任存储中,这些 Workplace Collaboration Services 支持 WebSphere Application Servers 的 WPCP 和 PDM 服务。

默认情况下,WebSphere Application Server 会提供一个伪服务器信任文件 (DummyServerTrustFile.jks)。 IBM WebSphere V5.0 Security WebSphere Handbook Series SG24-6573-00 定义了如何创建自己的服务器信任文件 (WASV5ServerTrustFile.jks) 和服务器密钥文件 (WASV5ServerKeyFile.jks)。有关创建这些文件的过程,请参阅 WebSphere Application Server 信息中心

要将 IBM HTTP 服务器证书导入到 WebSphere Application Server 信任存储中,请执行下列步骤。

注意:该过程只适用于从 IBM HTTP 服务器导入证书。实现这一点的实用程序会随 HTTP 服务器的变化而变化;IBM HTTP Server 的 IKEYMAN 实用程序在其他 HTTP 服务器中将不可用。

  1. 通过单击 Security - SSL - (Application Node),然后查找 Trust File Name 字段的值,可以在 WebSphere 管理控制台中找到 WebSphere Application Server 信任文件的名称。例如,可以在 Trust File Name 字段中找到一个路径,如下所示:

    <was_root>/etc/DummyServerTrustFile.jks
  2. 在 IBM HTTP Server Key Management Utility ikeyman 中,打开在前一小节“在 HTTP 服务器上启用 SSL”中创建的 Key Database,例如 File Name: key.kdb,Location: <IHS ROOT>\ssl\keys。输入创建密钥数据库时用到的口令,并选择 Personal Certificates,然后单击 Extract Certificate,以提取所创建的自签名证书。最后选择 Base64-encoded ASCII 数据作为数据类型,并将其保存在 <was_root> 中。对于路径的例子,可以将其保存在如下路径中:

    C:\WebSphere\AppServer\mycert.arm
  3. 单击 OK。关闭 Key Manager 实用程序。
  4. 使用 WebSphere Application Server 随附的 IKEYMAN 实用程序 (<was_root>\bin\ikeyman.bat),而不要使用 IBM HTTP Server 实用程序,将证书导入到 WebSphere Application Server 信任文件中,启动 ikeyman.bat,打开 Key Database 例子 DummyServerTrustFile.jks,输入口令,选择 Signer Certificates,然后单击 Add。WebSphere Application Server-supplied 服务器信任文件 (DummyServerTrustFile.jks) 的默认口令是 WebAS。
  5. 通过浏览找到在第 2 步中提取出来的证书,即 mycert.arm,然后单击 OK,并将证书做上标记。例如可以将其标记为 IWP_Self_Signed。然后单击 OK。
  6. 使用与第 4 步和第 5 步相同的步骤,将证书导入到 WebSphere Application Server Java 信任文件 <was_root>java/jre/lib/security/cacerts 中。打开 Key Database cacerts,然后输入口令,并选择 Signer Certificates,最后单击 Add。cacerts 的默认口令是 changeit。
  7. 通过浏览找到在第 2 步中提取出来的证书,mycert.arm,然后单击 OK,并将证书做上标记。例如可以将其标记为 IWP_Self_Signed。然后单击 OK。
  8. 使用与第 4 步和第 5 步相同的步骤,将证书导入到 IBM Workplace Collaboration Services 的 WebSphere Application Server Java 信任文件 <was_root>workplaceserver/java/jre/lib/security/cacerts 中。打开 Key Database cacerts,然后输入口令,并选择 Signer Certificates,最后单击 Add。cacerts 的默认口令是 changeit。SIP 服务器使用 Java 1.4.1. JDK,而不使用标准的 IBM Java JDK。
  9. 通过浏览找到在第 2 步中提取出来的证书,mycert.arm,然后单击 OK,并将证书做上标记。例如可以将其标记为 IWP_Self_Signed。然后单击 OK。关闭 Key Manager 实用程序。





在 IBM Workplace Collaboration Services 中启用 SSL

要在 IBM Workplace Collaboration Services 中启用 SSL,需要将运行在 WebSphere Application Server 之上的 IBM Workplace Collaboration Services 配置为运行在 SSL 之下。可以通过以管理员的身份登录到 WebSphere Application Server 管理控制台来做到这一点。(通常,Administration Console 的地址为 http://servername.yourco.com:9091/admin。)然后执行下列步骤:

  1. 在管理控制台上,单击 Navigator 中的 Environment,然后选择 Virtual Hosts。
  2. 选择 default_host,然后选择 Additional Properties 下的 Host Aliases(参见图 6)。

    图 6. Host Aliases

    Host Aliases

  3. 单击 New,然后输入下列信息:

    Host Name: *

    Port: 443


    将 Administration Server 设置为侦听默认的 SSL 端口 (443)。
  4. 在 Security 下,选择 Authentication Mechanisms - LTPA。在其他 Additional Properties/Single Sign on 中,选择 Requires SSL。单击 OK,然后将这些保存到 Master Configuration。
  5. 要激活这个新主机别名,可以单击 Apply,然后单击 Save。通过再次单击 Save 可以将新信息添加到 WebSphere Application Server 配置中。
  6. 要让 WebSphere Application Server 读取所保存的配置,可以通过从 Navigator 中选择 Environment 来更新 Web 服务器插件,然后选择 Update Web Server Plug-in。
  7. 单击 OK,然后退出。
  8. 现在需要在管理控制台外进行一些手动调整。这需要关闭 Workplace Collaboration Services 服务器。可以通过从命令窗口执行 stopServer 命令来停止服务器。您的 WebSphere Application Server 系统管理员可以帮助您执行这一操作。
  9. 这时,必须编辑几个配置文件以启用 SSL 身份验证。第一个文件是 plugin-cfg.xml。该文件位于 <WAS_ROOT> 目录中的子目录 config\cells 下,默认情况下,<WAS_ROOT> 目录是 c:\WebSphere\AppServer。在编辑器中打开文件,搜索 ESIEnable。如果存在该值,并且它被设置为 true,那么将其更改为 false:

    <Property Name="ESIEnable" Value="false"/>
  10. 还需要设置 WebSphere Portal Server 来侦听 SSL 端口。最快捷最简便的方法是编辑 configservices.properties 文件。该文件位于 \WebSphere\PortalServer\shared\app\config\services\ 中。在这个文件中,需要验证或调整下列两行:

    redirect.login.ssl = true

    host.port.https = <alias_port>


    其中 <alias_port> 是用于该过程第 3 步中所指定的虚拟主机别名的端口号。参数 redirect.logout.ssl 可以保持其设置为 false。
  11. 接下来的步骤涉及到对很多文件进行相同的更改。这些文件是 Portal Server 和 WebSphere Portal Content Publisher (WPCP) 的一部分,并且是其 Enterprise Applications 的一部分。更改使得受保护的门户 URL 能够使用 HTTPS 进行通信。在所有的实例中,需要调整的文件名为 web.xml。可以通过将 <security-constraint> 标记的 <transport-guarantee> 标记中的 NONE 替换为 CONFIDENTIAL 来编辑 web.xml 文件。这说明需要使用 HTTPS。需要调整的文件位于下列目录中(请注意,<cellname> 是主机服务器的公用名称或简称,例如 acmesales):
    • <WAS_ROOT>\installedApps\<cell-name>
    • LWP_SIP_Presence_IM.ear/presenceimsiplets.war/WEB-INF/
    • pdmauthor.ear/pdmauthor.war/WEB-INF/
    • LWP_ActivityExplorer_Service.ear/aeTest.war/WEB-INF/
    • WPCP_Runtime.ear/wpcpruntime.war/WEB-INF/
    • WPCP_Authoring.ear/pcm.war/WEB-INF/
    • wps.ear/wps.war/WEB-INF/
    • <wp_home>\installedApps\
    • lwp.webconfPortal_PA_1_0_AC.ear/PA_1_0_AC.war/WEB-INF/web.xml
    例如:

    
    <security-constraint id="SecurityConstraint_1">
    <web-resource-collection id="WebResourceCollection_1"> 
    <web-resource-name></web-resource-name> 
    <url-pattern>/myportal/*</url-pattern> 
    <http-method>DELETE</http-method> 
    <http-method>GET</http-method> 
    <http-method>POST</http-method> 
    <http-method>PUT</http-method> 
    </web-resource-collection> 
    <auth-constraint id="AuthConstraint_1"> 
    <description></description> 
    <role-name>All Role</role-name> 
    </auth-constraint> 
    <user-data-constraint id="UserDataConstraint_4"> 
    <transport-guarantee>CONFIDENTIAL</transport-guarantee> // replace NONE with CONFIDENTIAL 

    </user-data-constraint> </security-constraint>


注意:有些 web.xml 文件包含多个 <transport-guarantee> 标记实例,需要对其进行编辑。







编辑 JSP

通过将 ssl=“true” 添加到链接的 <wps:url> 标记中来编辑下列 JavaServer Pages (JSP)。(有一个文件例外:编辑 <was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/ToolBarInclude.jsp- 时,只需将其现有值从 false 改为 true 即可,无需添加 ssl=“true”)如果使用了代理服务器,则应该将代理服务器的 DNS 名称定义为 PortalServer/shared/app/config/services/ConfigService.properties 中的 host.name 参数。(这些 JSP 为登录按钮提供了到标记的登录链接,例如,<a href='<wps:url home="public" screen="Login" ssl="true"/>'>。必须编辑下列必需的 JSP;其他 JSP 是可选的:

必需的:

<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/workplace/TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/workplace/ToolBarInclude.jsp


可选的:

<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/alloy/TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/alloy/ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_digital/
   TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_digital/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_galaxy/
   TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_galaxy/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_heatwave/
   TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_heatwave/
    ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_lava/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_lava/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_lime/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_lime/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_rust/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_1_rust/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_dusk/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_dusk/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_graphite/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_graphite/
    ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_olive/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_olive/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_redwave/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_redwave/
    ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_slate/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_slate/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_sunrise/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_2_sunrise/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_bubbles/
   TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_bubbles/
    ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_crimson/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_crimson/
    ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_forest/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_forest/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_sky/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_sky/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_steel/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_steel/
   ToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_sunset/
    TemplateToolBarInclude.jsp
<was_root>/installedApps/<cellname>/wps.ear/wps.war/themes/html/structure_3_sunset/
   ToolBarInclude.jsp


在所有这些文件中,应该有一个登录链接实例。通过对文件进行简单的搜索应该可以快速找到该设置。该属性应该出现在一个链接中,如下所示:

<a href='<wps:url home="public" screen="Login"/>'>

找到登录链接后,添加 ssl= 属性并将其设置为 true,例如:

<%-- login button --%>
<wps:if loggedIn="no" notScreen="Login">
<td valign="middle">
<a href='<wps:url home="public" screen="Login" ssl="true"/>'>
<img src='<wps:urlFindInTheme file="nav_login.gif"/>'
alt='<wps:text key="link.login" bundle="nls.engine"/>'
border="0" align="absmiddle" width="25" height="25"
 title='<wps:text key="link.login" bundle="nls.engine"/>'>
</a>
</td>
</wps:if>


编辑完所有的 JSP 文件之后,需要删除编译后的文件,这些文件由 WebSphere Application Server 使用。要实现这一点,请转到 WebSphere Application Server 缓存目录 <WAS_ROOT>/temp/<node_name>/WebSphere_Portal/wps,然后移除子目录 wps.war。重新启动 Workplace Collaboration Services 服务器时,将重新编译 JSP 文件并重新创建目录,这时可以配置 SSL。

将下列属性文件中 wpcp.serverUrl 的值更改为通过 HTTPS 进行连接,默认情况下,它被设置为通过 HTTP 进行连接。具体地说,更改 wpcp.serverUrl 值是通过删除 :9081 端口值,并将 http 改为 https 实现的:

wpcp.serverUrl=http://server.yourco.com:9081/lwp/wcp

更改为

wpcp.serverUrl=https://server.yourco.com/lwp/wcp
<lwp_root>/properties/lwpae.properties
<lwp_root>/properties/lwpagenda.properties
<lwp_root>/properties/lwpchatroom.properties
<lwp_root>/properties/lwpformsstorage.properties
<lwp_root>/properties/lwplistadapter.properties
<lwp_root>/properties/lwppdmadapter.properties
<lwp_root>/properties/lwptaistorage.properties
<lwp_root>/properties/lwpteamtasklist.properties


将下列属性文件中 workplaceurl.serverUrl 的值改为通过 HTTPS 进行连接,默认情况下,它被设置为通过 HTTP 进行连接。具体来说,更改 workplaceurl.serverUrl 值是通过删除 :9081 端口值,并将 http 改为 https 实现的:

workplaceurl.serverUrl=http://server.yourco.com:9081/lwp/myworkplace

更改为

workplaceurl.serverUrl=https://server.yourco.com/lwp/myworkplace:

<lwp_root>/properties/lwpworkplaceurl.properties

重新启动所有的服务器。现在需要重新启动与 Workplace Collaboration Services 相关联的所有服务器,以确保刚才所做的更改是正确的。使用适当产品文档随附的指南,启动 WebSphere Portal 服务器、Workplace Collaboration Services 服务器,最后启动 HTTP 服务器。







验证 SSL 连接

将 SSL 完全配置为想要的级别后,还需要执行一些简单的步骤来检查 SSL 连接。首先,通过 SSL 端口 443 找到 HTTP 服务器。可以通过输入 URL https://<server name>:443 实现这一点,其中 <server name> 是 HTTP 主机的名称。在该 URL 中,要注意 https 中的 s,并且端口被设置为 443。系统会显示一个类似于图 7 的窗口:



图 7. Security Alert 屏幕

Security Alert 屏幕

该窗口是一个标准的浏览器功能,并且表明正在访问安全证书,同时已经根据浏览器的可接受证书列表对该安全证书进行了验证。出现该窗口即表明正在使用 SSL。单击 Yes 并继续后面操作。

显示了 HTTP 服务器欢迎页面之后,请查看浏览器任务栏上的 Lock 指示器。图 8 显示了该指示器在 Internet Explorer 中的样子:



图 8. Lock 指示器

Lock 指示器

如果 Lock 图标处于关闭状态,则表明站点受到保护,SSL 正在 HTTP 服务器上运行。

接下来,检查 Workplace Collaboration Services。开始一个 Workplace Collaboration Services 会话 (http://yourservername.com/lwp/workplace),然后单击链接中的 Log。系统可能会再次显示 Security Alert 窗口。如果出现这个窗口,则单击 Yes 并继续后面的操作。这时,检查浏览器中显示的 URL。HTTP 前缀应该被替换为 HTTPS,并且锁定指示器应该是可见的。这表明 Workplace Collaboration Services 的基本操作和登录操作都已经受到保护。







结束语

希望这些设置用于 Workplace Collaboration Services 的 SSL 的过程和建议能对您有所帮助。SSL 通常是站点整体安全性的一个重要部分,很多系统管理员都想确保他们可以部署启用了 SSL 的 Workplace Collaboration Services。我们的经验表明,需要经过一番努力才能实现这一点,您可以使用 SSL 设置 Workplace Collaboration Services,确保公司最敏感信息的安全性和完整性。



 
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:用 SSL 保护应用程序
· 下一篇:VPN技术谁领风骚?IPSec还是SSL?
· 网上银行的安全与风险防控
· IDS将何去何从
· ASP常见的安全漏洞
· 微软部署Vista简便升级 促用户使用高端版本
· IDS:安全新亮点


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077