+

Search Tips   |   Advanced Search

Configure trust anchors for the generator binding on the application level

A trust anchor specifies keystores that contain trusted root certificates, which validate the signer certificate. These keystores are used by the request generator and the response generator (when web services are acting as client) to generate the signer certificate for the digital signature. We can configure trust anchors for the generator binding at the application level using the administrative console.

We can configure a trust anchor using an assembly tool or the administrative console. This task describes how to configure the application-level trust anchor using the administrative console. For more information on assembly tools, see the related information.

The keystores 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, IBM recommends that you secure these keystores. The binding configuration specified for the request generator must match the binding configuration for the response generator.

The trust anchor configuration for the request generator on the client must match the configuration for the request consumer on the server. Also, the trust anchor configuration for the response generator on the server must match the configuration for the response consumer on the client.

Trust anchors defined at the application level have a higher precedence over trust anchors defined at the server or cell level. How to configure trust anchors at the server or cell level is not described in this task. For more information on creating and configuring trust anchors on the server or cell level, see Configure trust anchors on the server or cell level.

Configure trust anchors for the generator binding on the application level:


Tasks

  1. Locate the trust anchor panel in the administrative console.

    1. Click Applications > Application Types > WebSphere enterprise applications > application_name.

    2. Under Manage modules, click URI_name.

    3. Under Web Services Security Properties we can access the trust anchor configuration for the following bindings:

    4. Under Additional properties, click Trust anchors.

    5. Click New to create a trust anchor configuration, click Delete to delete an existing configuration, or click the name of an existing trust anchor configuration to edit its settings. For a new configuration, enter a unique name in the Trust anchor name field.

  2. Keystore password, the keystore location, and the keystore type. keystore files contain public and private keys, root certificate authority (CA) certificates, the intermediate CA certificate, and so on. Keys retrieved from the keystore are used to sign and validate or encrypt and decrypt messages or message parts. If we specified the com.ibm.wsspi.wssecurity.keyinfo.KeyStoreKeyLocator implementation for the key locator class implementation, specify a keystore password, location, and type.

    1. Specify a password in the Keystore password field. This password is used to access the keystore file.

    2. Specify the location of the keystore file in the Keystore path field.

    3. Select a keystore type from the Keystore type field. The Java Cryptography Extension (JCE) used by IBM supports the following keystore types:

      JKS

      Use this option if we are not using Java Cryptography Extensions (JCE) and if your keystore file uses the Java Keystore (JKS) format.

      JCEKS

      Use this option if we are using Java Cryptography Extensions.

      (ZOS) JCERACFKS

      (ZOS) Use JCERACFKS if the certificates are stored in a SAF key ring (z/OS only).

      PKCS11KS (PKCS11)

      Use this format if your keystore uses the PKCS#11 file format. Keystores using this format might contain RSA keys on cryptographic hardware or might encrypt keys that use cryptographic hardware to ensure protection.

      PKCS12KS (PKCS12)

      Use this option if your keystore uses the PKCS#12 file format.

      WebSphere Application Server provides some sample keystore files in the following directory, using the USER_INSTALL_ROOT variable: (Windows) c:\{USER_INSTALL_ROOT}\etc\ws-security\samples(UNIX) (Linux) ${USER_INSTALL_ROOT}/etc/ws-security/samples

      For example, we might use the enc-receiver.jceks keystore file for encryption keys. The password for this file is Storepass and the type is JCEKS.

      Restriction: Do not use these keystore files in a production environment. These samples are provided for testing purposes only.

This task configures trust anchors for the generator binding at the application level.


What to do next

Specify a similar trust anchor configuration for the consumer.


Subtopics


Related:

  • Development and assembly tools