IBM Software Group 
® 
Managing and Replacing WebSphere 6.1 
SSL Certificates 
Brett Ostrander 
WebSphere® Support Technical Exchange
IBM Software Group | WebSphere software 
Agenda 
• Basic Design / Overview 
• Default 6.1 Configuration 
• Scope Settings 
• Certificate Expiration Management 
• Manually Replacing Certificates
IBM Software Group | WebSphere software 
Basic Design / Overview 
• No longer use the Dummy keys 
• Key Stores (key.p12) and Trust Stores (trust.p12) contain 
– Signer Certificates 
– Personal Certificates 
– Personal Certificate Requests 
• WebSphere® provides all of the needed key/trust stores 
needed by default 
• Self signed certificates are created per profile by default
IBM Software Group | WebSphere software 
Basic Design / Overview 
• Certificate and key management is built into the Admin 
Console 
• Configurations are scoped at the level of cell, node, cluster, 
node group, server...
IBM Software Group | WebSphere software
IBM Software Group | WebSphere software 
Default Configuration 
Key Stores and Trust Stores are managed via the Admin 
Console and stored in the configuration repository 
CellDefaultKeyStore is located in 
${CONFIG_ROOT}/cells/cell_name/key.p12 
CellDefaultTrustStore is located in 
${CONFIG_ROOT}/cells/cell_name/trust.p12 
Important: This is the Trust Store used by default in the Entire 
Cell
IBM Software Group | WebSphere software 
Default Configuration 
NodeDefaultKeyStore is in 
${CONFIG_ROOT}/cells/cell_name/nodes/node_name/key 
.p12 
NodeDefaultTrustStore is in 
${CONFIG_ROOT}/cells/cell_name/nodes/node_name/trust.p1 
2 
NodeDefaultTrustStore is not used by default
IBM Software Group | WebSphere software 
Default Configuration 
Web Server’s KDB file is in 
${CONFIG_ROOT}/config/cells/cell_name/nodes/node_name/ 
servers/webserver/plugin-key.kdb
IBM Software Group | WebSphere software 
Scope Settings
IBM Software Group | WebSphere software 
• SSL configurations > NodeDefaultSSLSettings
IBM Software Group | WebSphere software 
Certificate Expiration 
Management 
• WebSphere automatically (be default) scans all key stores 
looking for certificates that will expire 
• Any self-signed certificates that will expire in the next 
expiration notification days will be replaced 
– if automatic synchronization is disabled and outage will occur 
– unmanaged webservers stop working 
– communication may be broken with other servers in other cells, MQ, 
etc. 
– various other problems can also occur 
• Consider disabling automatic certificate replacement 
and generating your own certificates...
IBM Software Group | WebSphere software
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• Run backupConfig on the Deployment Manager 
• Replace the Deployment Manager certificate 
In the Admin Console, go to Security > SSL certificate and key 
management > Key stores and certificates > CellDefaultKeyStore 
> Personal certificates > Create a self-signed certificate
IBM Software Group | WebSphere software 
• Enter the required attributes and Save the changes.
IBM Software Group | WebSphere software 
• Return to Security > SSL certificate and key management > Key 
stores and certificates > CellDefaultKeyStore > Personal 
certificates 
• Select the old certificate and Replace
IBM Software Group | WebSphere software 
• Accept your new certificate and Save
IBM Software Group | WebSphere software 
• On the next screen, select the old certificate and Delete
IBM Software Group | WebSphere software 
• Verify that a Signer Certificate was added to your 
CellDefaultTrustStore for your new personal certificate
IBM Software Group | WebSphere software
IBM Software Group | WebSphere software 
• If for any reason the Signer Certificate was not added then you can 
do this manually
IBM Software Group | WebSphere software 
• Select the CellDefaultKeyStore and the CellDefaultTrustStore and 
click Exchange signers...
IBM Software Group | WebSphere software 
• Select and Add the new Signer Certificate
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• Replace the Node certificate 
Go to Security > SSL certificate and key management > Manage 
endpoint security configurations and Select the node
IBM Software Group | WebSphere software 
• Select Manage certificates
IBM Software Group | WebSphere software 
• Create a new self-signed certificate
IBM Software Group | WebSphere software 
• Enter the required attributes and Save the changes
IBM Software Group | WebSphere software 
• Return to Security > SSL certificate and key management > 
Manage endpoint security configurations and Select the node 
• Select Manage Certificates 
• Select the old certificate and click Replace
IBM Software Group | WebSphere software 
• Accept your new certificate and Save
IBM Software Group | WebSphere software 
• Return to the node Manage certificates page, select the old 
certificate and Delete
IBM Software Group | WebSphere software 
• Verify that a Signer Certificate was added to your 
CellDefaultTrustStore for your new Personal Certificate
IBM Software Group | WebSphere software
IBM Software Group | WebSphere software 
• If for any reason the Signer Certificate was not added then you can 
do this manually 
• Select the NodeDefaultKeyStore and the CellDefaultTrustStore and 
click Exchange signers...
IBM Software Group | WebSphere software 
• Select and Add the new Signer Certificate
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• Delete the old Signer Certificates and Extract the new ones
IBM Software Group | WebSphere software
IBM Software Group | WebSphere software 
• Extract each certificate
IBM Software Group | WebSphere software 
• Enter a File Name that corresponds to the certificate. For example, 
node1.arm 
• These files are saved to the profile_root/Dmgr/etc directory
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• Add the Signer Certificates for each node to the 
plugin-key.kdb 
Go to Servers > Web servers> webserver_name > Plug-in 
properties > Manage keys and certificates > Signer 
certificates > Add
IBM Software Group | WebSphere software 
• Enter a unique Alias Name and then specify the File Name that you 
created previously
IBM Software Group | WebSphere software 
• Repeat this for each of the new certificates (the cell signer and all of 
the node signers) 
• Manually copy the plugin-key.kdb from the local configuration to the 
webserver 
• Important Note: Depending on your configuration you may not be 
able to perform the previous steps with the console. If the fields are 
greyed out and/or you are unable to manage your plugin-key.kdb 
from the console you will need to use IKEYMAN to manually add the 
certificates
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• For all profiles, when these self-signed certificates are 
initially created they are also added into the key.p12 and 
trust.p12 in the ${PROFILE_ROOT}/etc directory. These key 
stores are used by clients (for example, wsadmin) started 
from this profile 
• These certificates provide them with the trust needed to 
communicate with servers in the same profile without 
requiring any signer exchanges to occur
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• Whenever changes are made to the server certificates after 
the initial profile creation the /etc trust.p12 will need to be 
updated 
• If client authentication is enabled on the server the 
/etc/key.p12 will need be updated also
IBM Software Group | WebSphere software 
Manually Replacing Certificates 
• Manually replace the trust.p12 in each of the /etc directories 
– Copy the ${CONFIG_ROOT}/cells/cell_name/trust.p12 to the 
profile_root/Dmgr/etc directory 
– Copy the ${CONFIG_ROOT}/cells/cell-name/trust.p12 to the 
profile_root/Appsrv/etc directory and repeat for each node in the cell 
• If needed, replace the key.p12 files also 
– Copy the ${CONFIG_ROOT}/cells/cell_name/key.p12 to the 
profile_root/Dmgr/etc directory 
– Copy the ${CONFIG_ROOT}/cells/cell-name/ 
node/node_name/key.p12 to corresponding 
profile_root/Appsrv/etc directory and repeat for each node in the cell
IBM Software Group | WebSphere software 
Reference Articles 
• IBM WebSphere Developer Technical Journal: SSL, 
certificate, and key management enhancements for even 
stronger security in WebSphere Application Server V6.1 
• Manually Replacing SSL Certificates in V6.1
IBM Software Group 
Additional WebSphere Product 
Resources  Discover the latest trends in WebSphere Technology and implementation, participate in 
technically-focused briefings, webcasts and podcasts at: 
http://www.ibm.com/developerworks/websphere/community/ 
 Learn about other upcoming webcasts, conferences and events: 
http://www.ibm.com/software/websphere/events_1.html 
 Join the Global WebSphere User Group Community: http://www.websphere.org 
 Access key product show-me demos and tutorials by visiting IBM® Education Assistant: 
http://www.ibm.com/software/info/education/assistant 
 View a Flash replay with step-by-step instructions for using the Electronic Service Request (ESR) 
tool for submitting problems electronically: 
http://www.ibm.com/software/websphere/support/d2w.html 
 Sign up to receive weekly technical My support emails: 
http://www.ibm.com/software/support/einfo.html 
WebSphere® Support Technical Exchange 45
IBM Software Group 
Questions and Answers 
WebSphere® Support Technical Exchange 46

Managing Websphere Application Server certificates

  • 1.
    IBM Software Group ® Managing and Replacing WebSphere 6.1 SSL Certificates Brett Ostrander WebSphere® Support Technical Exchange
  • 2.
    IBM Software Group| WebSphere software Agenda • Basic Design / Overview • Default 6.1 Configuration • Scope Settings • Certificate Expiration Management • Manually Replacing Certificates
  • 3.
    IBM Software Group| WebSphere software Basic Design / Overview • No longer use the Dummy keys • Key Stores (key.p12) and Trust Stores (trust.p12) contain – Signer Certificates – Personal Certificates – Personal Certificate Requests • WebSphere® provides all of the needed key/trust stores needed by default • Self signed certificates are created per profile by default
  • 4.
    IBM Software Group| WebSphere software Basic Design / Overview • Certificate and key management is built into the Admin Console • Configurations are scoped at the level of cell, node, cluster, node group, server...
  • 5.
    IBM Software Group| WebSphere software
  • 6.
    IBM Software Group| WebSphere software Default Configuration Key Stores and Trust Stores are managed via the Admin Console and stored in the configuration repository CellDefaultKeyStore is located in ${CONFIG_ROOT}/cells/cell_name/key.p12 CellDefaultTrustStore is located in ${CONFIG_ROOT}/cells/cell_name/trust.p12 Important: This is the Trust Store used by default in the Entire Cell
  • 7.
    IBM Software Group| WebSphere software Default Configuration NodeDefaultKeyStore is in ${CONFIG_ROOT}/cells/cell_name/nodes/node_name/key .p12 NodeDefaultTrustStore is in ${CONFIG_ROOT}/cells/cell_name/nodes/node_name/trust.p1 2 NodeDefaultTrustStore is not used by default
  • 8.
    IBM Software Group| WebSphere software Default Configuration Web Server’s KDB file is in ${CONFIG_ROOT}/config/cells/cell_name/nodes/node_name/ servers/webserver/plugin-key.kdb
  • 9.
    IBM Software Group| WebSphere software Scope Settings
  • 10.
    IBM Software Group| WebSphere software • SSL configurations > NodeDefaultSSLSettings
  • 11.
    IBM Software Group| WebSphere software Certificate Expiration Management • WebSphere automatically (be default) scans all key stores looking for certificates that will expire • Any self-signed certificates that will expire in the next expiration notification days will be replaced – if automatic synchronization is disabled and outage will occur – unmanaged webservers stop working – communication may be broken with other servers in other cells, MQ, etc. – various other problems can also occur • Consider disabling automatic certificate replacement and generating your own certificates...
  • 12.
    IBM Software Group| WebSphere software
  • 13.
    IBM Software Group| WebSphere software Manually Replacing Certificates • Run backupConfig on the Deployment Manager • Replace the Deployment Manager certificate In the Admin Console, go to Security > SSL certificate and key management > Key stores and certificates > CellDefaultKeyStore > Personal certificates > Create a self-signed certificate
  • 14.
    IBM Software Group| WebSphere software • Enter the required attributes and Save the changes.
  • 15.
    IBM Software Group| WebSphere software • Return to Security > SSL certificate and key management > Key stores and certificates > CellDefaultKeyStore > Personal certificates • Select the old certificate and Replace
  • 16.
    IBM Software Group| WebSphere software • Accept your new certificate and Save
  • 17.
    IBM Software Group| WebSphere software • On the next screen, select the old certificate and Delete
  • 18.
    IBM Software Group| WebSphere software • Verify that a Signer Certificate was added to your CellDefaultTrustStore for your new personal certificate
  • 19.
    IBM Software Group| WebSphere software
  • 20.
    IBM Software Group| WebSphere software • If for any reason the Signer Certificate was not added then you can do this manually
  • 21.
    IBM Software Group| WebSphere software • Select the CellDefaultKeyStore and the CellDefaultTrustStore and click Exchange signers...
  • 22.
    IBM Software Group| WebSphere software • Select and Add the new Signer Certificate
  • 23.
    IBM Software Group| WebSphere software Manually Replacing Certificates • Replace the Node certificate Go to Security > SSL certificate and key management > Manage endpoint security configurations and Select the node
  • 24.
    IBM Software Group| WebSphere software • Select Manage certificates
  • 25.
    IBM Software Group| WebSphere software • Create a new self-signed certificate
  • 26.
    IBM Software Group| WebSphere software • Enter the required attributes and Save the changes
  • 27.
    IBM Software Group| WebSphere software • Return to Security > SSL certificate and key management > Manage endpoint security configurations and Select the node • Select Manage Certificates • Select the old certificate and click Replace
  • 28.
    IBM Software Group| WebSphere software • Accept your new certificate and Save
  • 29.
    IBM Software Group| WebSphere software • Return to the node Manage certificates page, select the old certificate and Delete
  • 30.
    IBM Software Group| WebSphere software • Verify that a Signer Certificate was added to your CellDefaultTrustStore for your new Personal Certificate
  • 31.
    IBM Software Group| WebSphere software
  • 32.
    IBM Software Group| WebSphere software • If for any reason the Signer Certificate was not added then you can do this manually • Select the NodeDefaultKeyStore and the CellDefaultTrustStore and click Exchange signers...
  • 33.
    IBM Software Group| WebSphere software • Select and Add the new Signer Certificate
  • 34.
    IBM Software Group| WebSphere software Manually Replacing Certificates • Delete the old Signer Certificates and Extract the new ones
  • 35.
    IBM Software Group| WebSphere software
  • 36.
    IBM Software Group| WebSphere software • Extract each certificate
  • 37.
    IBM Software Group| WebSphere software • Enter a File Name that corresponds to the certificate. For example, node1.arm • These files are saved to the profile_root/Dmgr/etc directory
  • 38.
    IBM Software Group| WebSphere software Manually Replacing Certificates • Add the Signer Certificates for each node to the plugin-key.kdb Go to Servers > Web servers> webserver_name > Plug-in properties > Manage keys and certificates > Signer certificates > Add
  • 39.
    IBM Software Group| WebSphere software • Enter a unique Alias Name and then specify the File Name that you created previously
  • 40.
    IBM Software Group| WebSphere software • Repeat this for each of the new certificates (the cell signer and all of the node signers) • Manually copy the plugin-key.kdb from the local configuration to the webserver • Important Note: Depending on your configuration you may not be able to perform the previous steps with the console. If the fields are greyed out and/or you are unable to manage your plugin-key.kdb from the console you will need to use IKEYMAN to manually add the certificates
  • 41.
    IBM Software Group| WebSphere software Manually Replacing Certificates • For all profiles, when these self-signed certificates are initially created they are also added into the key.p12 and trust.p12 in the ${PROFILE_ROOT}/etc directory. These key stores are used by clients (for example, wsadmin) started from this profile • These certificates provide them with the trust needed to communicate with servers in the same profile without requiring any signer exchanges to occur
  • 42.
    IBM Software Group| WebSphere software Manually Replacing Certificates • Whenever changes are made to the server certificates after the initial profile creation the /etc trust.p12 will need to be updated • If client authentication is enabled on the server the /etc/key.p12 will need be updated also
  • 43.
    IBM Software Group| WebSphere software Manually Replacing Certificates • Manually replace the trust.p12 in each of the /etc directories – Copy the ${CONFIG_ROOT}/cells/cell_name/trust.p12 to the profile_root/Dmgr/etc directory – Copy the ${CONFIG_ROOT}/cells/cell-name/trust.p12 to the profile_root/Appsrv/etc directory and repeat for each node in the cell • If needed, replace the key.p12 files also – Copy the ${CONFIG_ROOT}/cells/cell_name/key.p12 to the profile_root/Dmgr/etc directory – Copy the ${CONFIG_ROOT}/cells/cell-name/ node/node_name/key.p12 to corresponding profile_root/Appsrv/etc directory and repeat for each node in the cell
  • 44.
    IBM Software Group| WebSphere software Reference Articles • IBM WebSphere Developer Technical Journal: SSL, certificate, and key management enhancements for even stronger security in WebSphere Application Server V6.1 • Manually Replacing SSL Certificates in V6.1
  • 45.
    IBM Software Group Additional WebSphere Product Resources Discover the latest trends in WebSphere Technology and implementation, participate in technically-focused briefings, webcasts and podcasts at: http://www.ibm.com/developerworks/websphere/community/ Learn about other upcoming webcasts, conferences and events: http://www.ibm.com/software/websphere/events_1.html Join the Global WebSphere User Group Community: http://www.websphere.org Access key product show-me demos and tutorials by visiting IBM® Education Assistant: http://www.ibm.com/software/info/education/assistant View a Flash replay with step-by-step instructions for using the Electronic Service Request (ESR) tool for submitting problems electronically: http://www.ibm.com/software/websphere/support/d2w.html Sign up to receive weekly technical My support emails: http://www.ibm.com/software/support/einfo.html WebSphere® Support Technical Exchange 45
  • 46.
    IBM Software Group Questions and Answers WebSphere® Support Technical Exchange 46