Skip Headers
Oracle® Beehive Installation Guide
Release 2 (2.0.1.8) for Linux x86

Part Number E16641-07
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

20 Configuring TLS with Oracle Wallet

This chapter describes how to configure Transport Layer Security (TLS) with Oracle Wallet.

A wallet is a password-protected container that stores authentication and signing credentials, including private keys, certificates, and trusted certificates, all of which are used by SSL for strong authentication.

Oracle Wallet provides a TLS encrypted communication channel that some services support or require, such as XMPP or FTPS. The following steps configure Oracle Beehive to use Oracle Wallet so that clients may access Oracle Beehive with a TLS connection.

Refer to the section "Changing Oracle Wallet Password" to change the password of your Oracle Wallet.

Refer to the section "Configuring TLS on Multiple Instances" if you have more than one Oracle Beehive instance.

Refer to the section "Enabling ORMIS with Password-Protected Oracle Wallet" if you want to enable Oracle Remote Method Invocation over SSL.

Step 1: Enabling Auto Login Mode for Default Wallet

  1. Ensure that the environment variable ORACLE_HOME is set to the home directory of Oracle Beehive.

  2. Enable auto login mode for the default wallet with the following command. The default password for the default wallet is welcome:

    <Oracle home>/bin/orapki wallet create
      -wallet <Oracle home>/Apache/Apache/conf/ssl.wlt/default/
      -auto_login -pwd welcome
    

    Note:

    Alternatively, you may create a new wallet with auto login mode enabled. Use the same command except specify a different directory that does not contain a wallet. You may specify any password when creating a new wallet.

Step 2: Configuring Oracle Beehive Instance to Use Oracle Wallet

The following steps describe how to configure your Oracle Beehive instance to use Oracle Wallet.

  1. Run the following beectl command:

    beectl modify_property
      --component beehive_instance_<instance>.<host name>
      --name WalletDir
      --value <Oracle home>/Apache/Apache/conf/ssl.wlt/default
    

    <instance> is the instance name you specified when you installed Oracle Beehive. To retrieve the full instance name, run the command beectl list_components --type BeehiveInstance.

    <Oracle home>/Apache/Apache/conf/ssl.wlt/default is the location of the auto login wallet you configured or created previously.

  2. Activate the configuration and restart by running the following beectl command:

    beectl activate_configuration
    

    Note:

    If the beectl activate_configuration command asks you to run the beectl modify_local_configuration_files command, run this command.

    The beectl modify_local_configuration_files will ask you to run this command on all your other instances. Do not run this command on all your other instances at this time. For each instance, you must perform steps 1 and 2 before running the beectl modify_local_configuration_files command.

Step 3: Replacing Test Certificates in Oracle Wallet

If you created a wallet as part of TLS configuration, it will contain test certificates. These certificates are valid for a very short period of time and will expire quickly. Once they expire, when a user tries to access HTTPS, that user will receive an error similar to one of the following:

  • You have received an invalid certificate.

  • The security certificate presented by this Website has expired or is not yet valid.

  • The connection is untrusted.

Consequently, you must replace these test certificates with self-signed or CA-signed certificates. Refer to the sections "Creating Self-Signed Certificate and Importing it into Wallet" and "Creating CA-Signed Certificate and Importing it into Wallet" in "Configuring SSL" for more information.

Note:

After replacing these certificates with self-signed or CA-signed certificates, restart Oracle Beehive.

Changing Oracle Wallet Password

Follow these steps to change the Oracle Wallet password:

  1. Specify the wallet's new password in Oracle Beehive by running the following beectl commands:

    beectl modify_property
      --component beehive_instance_<instance>.<host name>
      --name WalletDir
      --value <$ORACLE_HOME>/Apache/Apache/conf/ssl.wlt/default
    
    beectl modify_local_configuration_files
    

    <instance> is the instance name you specified when you installed Oracle Beehive. To retrieve the full instance name, run the command beectl list_components --type BeehiveInstance.

    --value is the directory location of the wallet.

    To obfuscate a password, use the beectl obfuscate command:

    beectl obfuscate
      --expiration_time_in_minutes 0
    Enter value for password:
     
    Successfully obfuscated the string.
    
  2. Set the wallet password:

    beectl modify_secure_property
      –-component beehive_instance_<instance>.<host name>
      --name WalletPassword --value <password>
    
  3. Change the password to the one you specified in the previous step in Oracle Wallet Manager, <Oracle home>/bin/owm. Refer to "Changing the Password" in Chapter 11, "Managing Wallets and Certificates" in Oracle Application Server Administrator's Guide for more information.

  4. Activate the configuration and commit changes:

    beectl activate_configuration
    beectl modify_local_configuration_files
    

Configuring TLS on Multiple Instances

For each instance, run all the steps required to configure TLS with Oracle Wallet.

Enabling ORMIS with Password-Protected Oracle Wallet

Oracle Remote Method Invocation over Secure Socket Layer (ORMIS) is ORMI over SSL. For more information about ORMIS, refer to "Using ORMI/SSL (ORMIS) in OC4J" in Chapter 6, "Using Remote Method Invocation" in Oracle Containers for J2EE Services Guide.

By default, Oracle Beehive is ORMIS enabled using an anonymous cipher suite.

This section covers the following topics:

Disable ORMIS

  1. Modify the property _CURRENT_SITE:ManagedOc4jCluster:OrmisEnabled to false and activate the configuration:

    beectl modify_property
      --component _CURRENT_SITE:ManagedOc4jCluster
      --name OrmisEnabled
      --value false
    
  2. Activate the configuration:

    beectl activate_configuration
    
  3. Run the command beectl modify_local_configuration_files. This command may restart your application tier:

    beectl modify_local_configuration_files
    

Enable ORMIS with Default SSL

  1. Modify the property _CURRENT_SITE:ManagedOc4jCluster to true and activate the configuration:

    beectl modify_property
      --component _CURRENT_SITE:ManagedOc4jCluster
      --name OrmisEnabled
      --value true
    
  2. Activate the configuration:

    beectl activate_configuration
    
  3. Run the command beectl modify_local_configuration_files. This command may restart your application tier:

    beectl modify_local_configuration_files
    

Enable ORMIS with Password Protection

  1. Create a wallet as described in this module.

  2. Modify the property _CURRENT_SITE:ManagedOc4jCluster to true:

    beectl modify_property
      --component _CURRENT_SITE:ManagedOc4jCluster
      --name OrmisEnabled
      --value true
    
  3. Modify the property WalletDir of your Oracle Beehive instance to the path of your Oracle Wallet directory you just created with the following beectl commands:

    beectl list_components --type BeehiveInstance
    -------------------------------------------------------
    | Component type       | Component identifier         |
    -------------------------------------------------------
    | BeehiveInstance      | beehive_instance_example.com |
    ...
    
    beectl modify_property
      --component beehive_instance_example.com
      --name WalletDir
      --value <Your wallet directory>
    Successfully stored the property for component id 
    09386579-b66c-41d7-96e6-88f44673ec55.
    
  4. Set the wallet password:

    beectl modify_secure_property
      –-component <Component ID or alias of your Oracle Beehive instance; for
                 example, the previous step used beehive_instance_example.com>
      --name WalletPassword --value <password>
    
  5. Activate the configuration:

    beectl activate_configuration
    
  6. Run the command beectl modify_local_configuration_files. This command may restart your application tier:

    beectl modify_local_configuration_files