It is currently Fri May 18, 2012 3:46 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Configuring the SSL Certificate for Websphere Portal
PostPosted: Tue Oct 26, 2010 2:13 pm 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
Configuring the SSL Certificate for internal Websphere Application Server communication and admin tasks

Problem: Websphere application server uses https and SSL to communicate internally when running admin tasks such as deploying a war on portal or adding an LDAP attribute mapping to the portal server. If the certificate if the HTTPS is not valid or is not available the admin tasks will fail with an exception like the following
Code:
[SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: Certificate expired; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: Certificate expired]
   at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source)
   at org.apache.soap.rpc.Call.invoke(Unknown Source)


This exception indicates that the SSL certificate on the server has expired and it needs to be regenerated


Creating a new self signed certificate

To regenerate the SSL certificate you need to delete the expired certificate and create a new self signed certificate as follows
You can do this from the WAS admin console
Go to the following location
SSL certificate and key management > Manage endpoint security configurations > dwhportal1 > Key stores and certificates > NodeDefaultKeyStore > Personal certificates
Then select the certificate aliased “default” and then click delete and then save
Note: take note of the details of the certificate like CN, O and C
After deleting the certificate click “Create a self-signed Certificate” and fill the form as follows
Alias: default
Common Name: dwhportal1dev for development and dwhportal1tst for test
Organization: IBM
Country: US
Then click OK and save

Then restart the server

Creating a new signer certificate for the server
After doing the previous task if you try to run the administrative task again it will fail with the following exception
Code:
[SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException:
com.ibm.jsse2.util.h: No trusted certificate found; targetException=java.lang.IllegalArgumentException:
Error opening socket: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found]


This means that there is a valid certificate there on the server but that certificate is not added to the trusted certificates
To overcome this problem you need to add the signer certificate to the trusted “NodeDefaultTrustStore” key store
You can do this using the following steps
Login to the admin console and then following path in admin console

SSL certificate and key management > Key stores and certificates > NodeDefaultTrustStore > Signer certificates


Then click “Retrieve from Port” button
In the form enter the following fields
Host: The local server IP 10.0.13.59
Port: The HTTPS port of the WAS server 10003
Alias: default_signer
Then click “OK” and then save and restart the server1 and portal server.
You might need to delete the default_signer that was already there to avoid the duplicate Alias name.
Now when you install a war on portal it should succeed.

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Registered users: h5orkaba8, MoseJalkelams, seerterne


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]