Web Services - Configure trust anchors using an assembly tool

 

+

Search Tips   |   Advanced Search

 

 

Before you begin

Important distinction between V5.x and v6.x applications

This document describes how to configure trust anchors or trust stores at the application level. It does not describe how to configure trust anchors at the server or cell level. Trust anchors defined at the application level have a higher precedence over trust anchors defined at the server or cell level. One can configure an application-level trust anchor using an assembly tool or the administrative console. This document describes how to configure the application-level trust anchor using an assembly tool. For more information on creating and configuring trust anchors at the server or cell level, see either Configuring the server security bindings using an assembly tool or Configuring the server security bindings using the administrative console.

 

Overview

A trust anchor specifies key stores that contain trusted root certificates, which validate the signer certificate. These key stores are used by the request receiver (as defined in the ibm-webservices-bnd.xmi file) and the response receiver (as defined in the application-client.xml file when Web services is acting as client) to validate the signer certificate of the digital signature. The key stores are critical to the integrity of the digital signature validation. If they are tampered with, the result of the digital signature verification is doubtful and comprised. Therefore, it is recommended that you secure these key stores. The binding configuration specified for the request receiver in the ibm-webservices-bnd.xmi file must match the binding configuration for the response receiver in the application-client.xml file.

Complete the following steps to configure trust anchors using an assembly tool.

 

Procedure

  1. Configure an assembly tool to work with a J2EE enterprise application.

  2. Create a Web services-enabled J2EE enterprise application. If you have not created a Web services-enabled J2EE enterprise application, see Developing Web services applications. Also, see either Configuring the server security bindings using an assembly tool or Configuring the server security bindings using the administrative console for an introduction on how to manage Web services security binding information on the server.

  3. Configure the client-side response receiver, which is defined in the ibm-webservicesclient-bnd.xmi bindings extensions file.

    1. Use an assembly tool to import your J2EE application.

    2. Click Windows | Open Perspective | Other | J2EE.

    3. Click Application Client projects | appname | appClientModule | META-INF

    4. Right-click the application-client.xml file, select Open with | Deployment Descriptor Editor, and click the WS Binding tab. The Client Deployment Descriptor is displayed.

    5. Locate the Port qualified name binding section and either select an existing entry or click Add, to add a new port binding. The Web services client port binding editor displays for the selected port.

    6. Locate the Trust anchor section and click Add. The Trust anchor dialog box is displayed.

      1. Enter a unique name within the port binding for the Trust anchor name.

        The name is used to reference the trust anchor that is defined.

      2. Enter the key store password, path, and key store type.

        The supported key store types are Java Cryptography Extension (JCE) and JCEKS.

      Click Edit to edit the selected trust anchor.

      Click Remove to remove the selected trust anchor.

      When you start the application, the configuration is validated in the run time while the binding information is loading.

    7. Save the changes.

  4. Configure the server-side request receiver, which is defined in the ibm-webservices-bnd.xmi bindings extensions file.

    1. Click Windows | Open perspective | J2EE.

    2. Select the Web services enabled EJB or Web module.

    3. In the Package Explorer window, click the META-INF directory for an EJB module or the WEB-INF directory for a Web module.

    4. Right-click the webservices.xml file, select Open with | Web services editor, and click the bindings tab. The Web services bindings editor is displayed.

    5. Locate the Web service description bindings section and either select an existing entry or click Add to add a new Web services descriptor.

    6. Click Binding configurations. The Web services binding configurations editor is displayed for the selected Web services descriptor.

    7. Locate the Trust anchor section and click Add. The Trust anchor dialog box is displayed.

      1. Enter a unique name within the binding for the Trust anchor name.

        This unique name is used to reference the trust anchor defined.

      2. Enter the key store password, path, and key store type. The supported key store types are JCE and JCEKS.

      Click Edit to edit the selected trust anchor.

      Click Remove to remove the selected trust anchor.

      When you start the application, the configuration is validated in the run time while the binding information is loading.

    8. Save the changes.

 

Result

This procedure defines trust anchors that can be used by the request receiver or the response receiver (if the Web services is acting as client) to verify the signer certificate.

 

Example

 

What to do next

To complete the signing information configuration process for request receiver, complete the following tasks:

  1. Configure the server for request digital signature verification: Verify the message parts

  2. Configure the server for request digital signature verification: choose the verification method

To complete the process for the response receiver, if the Web services is acting as a client, complete the following tasks:

  1. Configure the client for response digital signature verification: verify the message parts

  2. Configure the client for response digital signature verification: choose the verification method


 

See Also

Trust anchors

 

Related Tasks

Assemble applications
Configure the server security bindings using an assembly tool
Configure the server security bindings using the administrative console
Develop Web services applications
Configure the server for request digital signature verification: Verify the message parts
Configure the server for request digital signature verification: choose the verification method
Configure the client for response digital signature verification: verify the message parts
Configure for response digital signature verification: choose the verification method