WebSphere Application Server V6.1: What's new in security?

Dramatic improvements have been made to many aspects of security management in IBM® WebSphere® Application Server V6.1. This summary introduces new security features and enhancements and explains how they can make your environment more secure and easier to maintain.


Keys Botzum, Senior Technical Staff Member , EMC

Keys Botzum is a Senior Technical Staff Member with IBM Software Services for WebSphere. Mr. Botzum has over 10 years of experience in large scale distributed system design and additionally specializes in security. Mr. Botzum has worked with a variety of distributed technologies, including Sun RPC, DCE, CORBA, AFS, and DFS. Recently, he has been focusing on J2EE and related technologies. He holds a Masters degree in Computer Science from Stanford University and a B.S. in Applied Mathematics/Computer Science from Carnegie Mellon University. Mr. Botzum has published numerous papers on WebSphere and WebSphere security. Additional articles and presentations by Keys Botzum can be found at http://www.keysbotzum.com, as well as on IBM developerWorks WebSphere. He is also co-author of IBM WebSphere: Deployment and Advanced Configuration.

07 June 2006

Also available in Chinese


IBM WebSphere Application Server V6.1 has some exciting changes in the area of security. In this brief article we will highlight the key changes and discuss their implications. Rather than just listing features, we will list some problems, complaints, and complexities related to security, and explain how some of the new features in V6.1 make them easier to resolve. Future articles will go into these changes in more detail.

What's new in V6.1?

Let's look at some wishes and gripes we have heard in the past that are nicely addressed in this new version of the product.

"Securing WebSphere Application Server is hard"

As many know, it takes a fair bit of effort to secure a default WebSphere Application Server installation. The basic steps are outlined in WebSphere Application Server V6 advanced security hardening, but this still requires a significant effort.

As part of a major push to simplify the product, many basic security configuration steps in V6.1 are now made by default -- that is to meet the principle of secure by default. Some examples include:

  • Administrative security is enabled automatically during installation.

  • All internal transports are authenticated by default.

  • Most internal transports are encrypted by default. DCS, which normally runs within a cell, remains unencrypted by default, but encryption can be enabled.

  • The default encryption keys are eliminated. A cell-specific set of keys is created automatically.

  • JNDI is read-only (rather than read/write) by default to all.

  • Messaging limits connections to only authenticated users granted the bus connect role by default. AllAuthenticated no longer has that role by default.

With security on by default, many people reading this list might worry that WebSphere Application Server will become harder to manage. We have done a number of things to simplify security management as well. We'll cover those next.

"Certificates, private keys, and encryption keys are too hard to manage"

Another troublesome area is the management of the keys used for encryption and authentication. The management of trust stores and key stores is now handled as a first class construct. This includes managing the certificates and keys in the key stores, as well as managing the replication of those keys, throughout a cell. There are numerous small enhancements that have yielded a vast improvement in usability. Some examples are:

  • Clients support prompting (like SSH) for adding certificates to the client trust store when contacting a server not previously accessed (this can be disabled if desired).

  • When configuring an SSL endpoint, the admin client can query the server and automatically import the server's signing certificate (with administrative approval, of course).

  • The WebServer plug-in configuration will automatically generate a plugin-key.kdb containing a self-signed certificate that is trusted by the WebSphere application servers. This greatly simplifies one of the most difficult SSL configurations.

  • Ikeyman usage is largely eliminated. Using the admin tools, you can generate certificates, generate certificate requests, import keys and certificates, manage certificates and keys, and even share them across the cell.

  • Key management applies to more than SSL certificates. The same infrastructure manages the keys used to encrypt LTPA tokens. You can even manage your own custom keys using the console, and applications can access them using IBM-defined APIs. Applications can now be freed from that burden.

  • There are now programmatic APIs for applications to obtain URLStreamHandlers, SSLContext instances, and SSLSocketFactories, based on the WebSphere Application Server-managed SSL configuration. You can also set SSL properties on the thread to be used for SSL connections that occur on that thread.

  • Support for custom JSSE trust and key managers enables more control of the SSL handshake.

  • The ability to associate an SSL configuration with specific target hosts and ports. Previously, a single static SSL configuration had to handle all outbound connections for any given protocol. This enables special configurations for targets that have unique handshake requirements.

  • Certificate expiration is managed. Where possible, new keys are generated automatically prior to expiration. When this is impossible, notifications are sent via the serious event stream and, optionally, via e-mail. Expiration monitoring is on by default.

  • LTPA encryption keys are automatically changed at regular intervals. To avoid outages, multiple key versions are simultaneously supported.

  • Better support is now provided for hardware encryption and hardware key storage.

To learn more, see:

"My corporate registry infrastructure is more complicated than just one simple LDAP directory"

Historically, we've required a fairly simple LDAP registry configuration consisting of one LDAP directory. Prior to Version 6.0.2, if it was replicated, we required that the replication be made transparent to the application server (using a load balancer or IP takeover). We could work around these limitations with a custom registry, but now with V6.1 we support much more complicated registry configurations out of the box. This will not solve every problem (for some you will still need a custom registry), but this helps in a great many cases. Here's a quick summary of what's new with the new registry support -- called federated repositories -- in V6.1:

  • A file registry is supported. For small sites with just a few users (or during early prototypes and development), you can now manage all of your users and groups in a file. There are admin tools for managing these users and the files are automatically replicated throughout the cell.

  • More than one LDAP directory can be combined together into one logical registry. Now, if your users are spread across multiple directories, you can combine them into one registry for WebSphere Application Server. Just be aware that userids must be unique!

  • LDAP failover is supported directly. Now, you can list multiple LDAP server replicas by IP address or hostname. The application servers will automatically fail over to backup servers should the primary fail.

Federated repositories are now the preferred and default directory infrastructure, but for compatibility we continue to support the existing LDAP registry, custom user registry, and operating system registry. In the future, we will be enhancing the federated registry component to support even more complicated registry environments.

To learn more, see: Federated repositories.

"I need to isolate my administrators from each other"

Prior to V6.1, administrative authority was cell-wide. If you granted an individual administrative authority, they had it for every node, server, and application in the cell. With V6.1, administrative authority can now be compartmentalized at a finer-grained level. We refer to this as fine grained administrative security.

However, this fine grained authority applies only to wsadmin, so if you need this, you will need to train your administrators to use wsadmin for administration. Fortunately, since we recommend scripting anyway, this just further emphasizes good practice.

To learn more, see: Fine-grained administrative security.

"Configuring the messaging bus to use secure transport is hard"

Readers familiar with the steps in WebSphere Application Server V6 advanced security hardening know that configuring a messaging bus to use secure transport has, in the past, been fairly difficult. Not only did you have to disable the insecure transports, you also had to manually ensure that every client used the secure transports. Now, this is all configured automatically and is easily controllable via the admin console. This is done through a new concept known as permitted chains, which controls what type of transport chains can be used (for example, only those using SSL).

To learn more, see: Transport security in service integration bus.

"I want single-sign on from my Windows desktop to my intranet applications"

WebSphere Application Server V6.1 supports a SPNEGO trust association interceptor (TAI) that allows the Kerberos credential from a Windows desktop to be sent from the browser to the WebSphere Application Server, and then used as the identity for access to WebSphere resources. A slightly different version of the SPNEGO TAI is available from IBM Software Services for WebSphere for previous releases, but with V6.1 we now have a fully supported product solution.

To learn more, see: Single sign-on for HTTP requests using SPNEGO.

"My Web applications mix protected and unprotected URIs, but I still need to know the user’s identity from unprotected URIs"

There are some new Web authentication options that can override the default J2EE authentication behavior. Normally, when requests go to URIs without any authorization constraint, no identity is set up. Applications that mix protected and unprotected URIs can sometimes make life difficult. Sometimes unprotected servlets still need the user's identity information if it is available. With V6.1 this behavior is now supported. You can optionally configure security to persist identity information across requests. Now, if a user accesses a protected URI and then an unprotected URI, their identity will be available. Anonymous users can, of course, directly access unprotected URIs as usual – but you can turn that off as well via another option!

To learn more, see: Web authentication settings.

Feature enhancements from previous releases you might not be aware of

While we have your attention, we want to also mention some great security features that were quietly introduced as part of WebSphere Application Server V6 and later that are still part of V6.1, just in case you missed them.

Generic database identity propagation

One of the challenges of building multi-tier systems is handling end to end authorization and identity flow. One particularly challenging case is with databases. Many databases have strong auditing and authorization built in to protect corporate data. With typical J2EE applications, a single connection pool identity is used for all database access. This undermines the value of the database's native access control and auditing function. In WebSphere Application Server V6, we introduced a feature that makes it possible (with some custom code) to send the originating user's identity information to the database. Now, you can leverage the power of J2EE applications and still use your database's native security functions.

To learn more, see: Database identity propagation in WebSphere Application Server.

Pluggable password storage

WebSphere Application Server stores passwords XOR encoded in the XML configuration files. In general, this is just fine, as a truly stronger solution would require hardware support. That said, if you want to change how passwords are stored (possibly including custom storage of passwords in encrypted form with hardware protected keys), you can do so as of V6.0.2.

To learn more, see: Plug point for custom password encryption.

LDAP failover

As mentioned earlier, V6.1 includes support for LDAP failover. Many don't realize that LDAP failover support was actually introduced with V6.0.2.

To learn more, see: Updating LDAP binding information.


We've summarized some exciting new features in WebSphere Application Server security, now available in Version 6.1. This release makes dramatic improvements in the areas of default security, ease of use, and security function. We hope you are as excited as we are, and as anxious to take advantage of these features in your WebSphere Application Server environment.


I would like to thank my colleagues Peter Birk and Alasdair Nottingham for their help in preparing this article.



Get products and technologies


developerWorks: Sign in

Required fields are indicated with an asterisk (*).

Need an IBM ID?
Forgot your IBM ID?

Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.


All information submitted is secure.

Dig deeper into WebSphere on developerWorks

ArticleTitle=WebSphere Application Server V6.1: What's new in security?