Tip

WebSphere Commerce Suite: Enabling SSL for the IBM HTTP Server and WebSphere Payment Manager

WebSphere Commerce Suite not only protects Web pages during the shopping experience, but it also secures Web traffic for administration tasks such as accessing store services or the admin console. Follow these steps to enable the Secure Socket Layer (SSL) protocol for the IBM HTTP Server for iSeries (Original).

Prerequisites
The following prerequisites must be met before you can enable SSL for the HTTP server:

  • Install the prerequisite license programs.
  • Create a *SYSTEM certificate store using the Digital Certificate Manager (DCM).
  • Obtain a server certificate from one of the following certificate authorities:
    • Well-known Certificate Authority (CA), such as VeriSign or RSA Security
    • OS/400 local Certificate Authority
    • For a WebSphere Commerce Suite site you should always use a server certificate that is issued by a well-known CA. A server certificate issued by a private or local CA should be used only in a development or test environment.

  • Verify that the CA certificate of the CA that issued the server certificate is in the list of trusted CAs in the *SYSTEM certificate store.

For detailed information on how create a local Certificate Authority, obtain a server certificate and verify the CA trust using OS/400 V5R1 refer to IBM eServer iSeries Wired Network Security: OS/400 V5R1 DCM and Cryptography Enhancements -- SG24-6168.

Configuring IBM HTTP Server instance
To be able to assign a server certificate to an SSL-capable application, such as the IBM HTTP Server, the application has to be registered in Digital Certificate Manager (DCM). Typically when you create an IBM HTTP Server instance using the AS/400 Tasks page, the IBM HTTP Server instance gets automatically registered in DCM when you enable SSL via the graphical user interface. The IBM HTTP Server instance that is created by the WebSphere Commerce Suite configuration manager is not automatically registered in DCM.

Perform the following steps to register the WebSphere Commerce HTTP server instance in DCM:

  1. Using a Web browser, enter the following URL to start the AS/400 Tasks page:
    http://host_name:2001
    where
    host_name is the iSeries server TCP/IP host name.
    If you get an error accessing the AS/400 Tasks page, verify that the administration server (ADMIN) is started under the QHTTPSVR subsystem. If the administration server is not started, type the following command:
    STRTCPSVR *HTTP HTTPSVR(*ADMIN)
  2. When prompted to enter a user and password, sign on with a user profile that has at least *ALLOBJ, *SECADM, and *IOSYSCFG special authorities.
  3. From the AS/400 Tasks page click IBM HTTP Server for AS/400 and then Configuration and Administration.
  4. From the task bar, click Configuration.
  5. From the Configuration for server pull-down list select the HTTP server instance that was created by the WebSphere Commerce configuration manager. In the scenario covered in this document, the instances names are ITSO and ITSOT.
  6. From the navigation bar, click Security configuration.
  7. Verify that Allow SSL connections check box is selected and click Apply. (See Figure 1)
  8. Figure 1

  9. Return to the AS/400 Tasks page and click Digital Certificate Manager.
  10. From the Digital Certificate Manager navigation bar, click Select a Certificate Store. As mentioned at the beginning of this section, the signed-on user needs the listed special authorities to perform the configuration steps.
  11. Select the *SYSTEM certificate store and click Continue.
  12. Enter the certificate store password and click Continue. The navigation bar refreshes and displays the options available for the signed-on user.
  13. From the navigation bar, click Fast Path and then from the expanded Fast Path menu, click Work with server applications. A list of registered server applications is displayed.
  14. Locate and select (one at a time) your HTTP server applications. In this scenario, the applications are registered with the application ID QIBM_HTTP_SERVER_ITSO and QIBM_HTTP_SERVER_ITSOT.

    Note: You will have to perform the subsequent steps for each IBM HTTP Server instance that you want to configure to use SSL.
  15. Click Work with application. This button is located at the bottom of the server applications list.
  16. Click Update Certificate Assignment. A list of available server certificates is displayed as shown in Figure 2.
  17. Figure 2

  18. Select the server certificate you want to use for your WebSphere Commerce instance and click Assign New Certificate to assign the selected certificate to the HTTP server instance.
  19. Click Cancel to return to the Work with Server Applications window.
  20. Under the Certificate Authority (CA) certificates in the application trust list section, click Define CA Trust List. A list of enabled CA certificates in the system certificate store is displayed. You need to trust at least the CA that issued the server certificate that is assigned to the HTTP server application. If you require client authentication using digital certificates, you also need to trust all CA certificates you are accepting client certificates from. For more information regarding CA trust, refer to IBM eServer iSeries Wired Network Security: OS/400 V5R1 DCM and Cryptography Enhancements -- SG24-6168.
  21. Select the CA certificate that signed the server certificate and click OK. A confirmation message is displayed.
  22. Click Cancel to return to the Work with Server Applications window and exit DCM.

This concludes the configuration task to enable SSL for an HTTP server.

WebSphere Payment Manager
This section provides additional configuration steps in order to enable WebSphere Payment Manager to use SSL and verify the correct installation.

SSL is a security protocol. SSL ensures that data transferred between a client and a server remains private. It allows the client to authenticate the identity of the server and the server to authenticate the identity of the client.

Digital certificates are electronic documents that authenticate the servers and clients involved in secured transactions over the Internet. The issuer of digital certificates is called a certificate authority (CA). The iSeries system can perform the role of CA in an Intranet environment issuing server and client certificates, and run as an authenticated server with server certificates issued either by an iSeries CA or an Internet CA like VeriSign. As a Web server, the IBM HTTP Server for iSeries can also be configured to request client certificates for authentication of SSL-enabled clients.

For detailed information on how to enable SSL on the IBM HTTP Server for iSeries, refer to the iSeries Information Center at following Web address:
http://publib.boulder.ibm.com/html/as400/infocenter.html

Once there, select your operating system version, and your language, and click Go. Search on Securing applications with SSL for guidance on how to enable SSL.

Verifying WebSphere Payment Manager user profiles
The purpose of this section is to ensure that after the installation of WebSphere Payment Manager the involved user profiles are configured and enabled. The following steps describe how to accomplish this process:

  1. From an OS/400 command line type the following commands:
    WRKUSRPRF USRPRF(QPY*)
    you should see the user profiles as shown in the following example.
  2. 
                                             Work with User Profiles                            
                                                                                  
    Type options, press Enter.                                                    
      1=Create   2=Change   3=Copy   4=Delete   5=Display                         
      12=Work with objects by owner                                               
                                                                                  
         User                                                                     
    Opt  Profile     Text                                                         
                                                                                  
    ___ QPYMADM     Payment Manager Administrator                                
    ___ QPYMSVR                                                                  
    ___ QPYMWEB                                                                  
    
                                                                            Bottom
    Parameters for options 1, 2, 3, 4 and 5 or command                            
    ===> 
    

  3. Select option 2 on each of the user profiles and press Enter. Ensure that each of the user profiles has the Status option with the value *ENABLED.

Granting access to WebSphere Commerce components
After creating your WebSphere Commerce instance, you must grant both the WebSphere Payment Manager instance and the WebSphere Commerce instance access to the system certificate store. For example, the following commands will grant the WebSphere Payment Manager instance the required access on a V5R1 system:

CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server') USER(QPYMSVR) DTAAUT(*RX)
CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB') USER(QPYMSVR) DTAAUT(*R)

And the following commands will grant the WebSphere Commerce the required access on a V5R1 system:

CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server') USER(QEJBSVR) DTAAUT(*RX)
CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB') USER(QEJBSVR) DTAAUT(*R)

---------------------------------
About the author: Aleksandr V. Nartovich is a senior I/T specialist in the IBM International Technical Support Organization (ITSO) Rochester Center. He joined the ITSO in January 2001 after working as a developer in the IBM WebSphere Business Components (WSBC) organization. You can reach Aleksandr at alekn@us.ibm.com.


This was first published in November 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.