Skip to main content link. Accesskey S
  • Overview ▾ Show Menu▼
  • APIs ▾ Show Menu▼
  • THIS WIKI IS READ-ONLY. Learn more...
  • IBM
  • Connections Developers
  • Home
  • Dev Guide
  • API Docs
  • SDK
  • Community
Dev Guide API Docs SDK Community This category IBM Social Business API Reference IBM Social Business Toolkit documentation Custom Search Scope...
Search
SDK > SDK docs > Enabling SSL in Tomcat
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Click to view profileIBM contributorIBM
Contribution Summary:
  • Articles authored: 853
  • Articles edited: 788
  • Comments Posted: 0

Recent articles by this author

Removing multiple members

To delete multiple members from an activity with one API request, send an Atom feed as part of a delete request to the activity ACL.

Adding multiple members

To add multiple members to an activity with one API request, send an Atom feed document containing entries of the new members to be added to the activity ACL.

Moving Nodes Under Different Activities or Nodes

To move an activity node to another activity node, use an HTTP POST request.

Moving fields between nodes

To move a field to another activity node, use an HTTP PUT request.

Working with following profiles using the Administration API

Working with following profiles using the Administration API
Enabling SSL in Tomcat
Added by IBM contributorIBM | Edited by IBM contributorVimal Dhupar1 on July 24, 2013 | Version 8
  • Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.

Enabling SSL for tomcat is a 2 step process.

1) Create a keystore.

2) Use the keystore while running tomcat instance.

 Create a KEYSTORE

1. Switch to JAVA6 bin directory -- eg: cd C:\Program Files\IBM\Java60\jre\bin

2. execute the command to create the keystore ::  keytool -genkey -alias tomcat -keyalg RSA -keystore `pwd`/.keystore

                   > here, give the path of the temp directory of Apache Tomcat, in place of pwd.
                      eg: keytool -genkey -alias tomcat -keyalg RSA -keystore C:/Softwares/apache7/.keystore

3. Follow the instructions to create the keystore, as shown below:-




c:\Program Files\IBM\Java60\jre\bin> keytool -genkey -alias tomcat -keyalg RSA -keystore C:/Softwares/apache7/.keystore
Enter keystore password:
Re-enter new password:
What is your first and last name?
  [Unknown]:  VIMAL DHUPAR
What is the name of your organizational unit?
  [Unknown]:  ICS
What is the name of your organization?
  [Unknown]:  IBM
What is the name of your City or Locality?
  [Unknown]:  Gurgaon
What is the name of your State or Province?
  [Unknown]:  Haryana
What is the two-letter country code for this unit?
  [Unknown]:  IN
Is CN=VIMAL DHUPAR, OU=ICS, O=IBM, L=Gurgaon, ST=Haryana, C=IN correct? 
  [no]:  Y

Enter key password for <tomcat>
(RETURN if same as keystore password):




Use the KEYSTORE

4. Now edit the server.xml of your tomcat instance, and add following configuration to it:-

 

<!-- Define a SSL HTTP/1.1 Connector on port 8443

         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->

<Connector SSLEnabled="true" clientAuth="false" keystoreFile="C:/Softwares/apache7/.keystore" keystorePass="password" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>


- In "keystoreFile" , provide the path where the keystore file has been created.
- In "keystorePass" provide the password set for the keystore, while creation.

5. Clean and Restart your Tomcat instance.



Parent topic: Security


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (8)Jul 24, 2013, 2:49:34 AMVimal Dhupar1  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMCnxDev on Twitter
  • ForumsIBMCnxDev on Stack Overflow
  • FacebookIBMSocialBizUX on Facebook
  • ForumsIBM Collaboration Solutions product forums
  • Community LinkThe Social Lounge
  • Wiki Help
  • Forgot user name/password
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use