Post-Installation Tasks
Finally, we have installed IBM Lotus Connections product, but there are some more important post installation steps! Lets go to finish them!
- Configure HTTP server
- Open http://ic.ys.cz:9060/admin and log in as wasadmin
- [root@ic bin]# cd /opt/IBM/HTTPServer/bin/
- start Administration server: [root@ic bin]# ./adminctl start
- Create new node to manage http server with dmgr server ... navigate to System administration > Nodes > click Add Node
- select Unmanaged node click NEXT
- Name: webserver1node
- HostName: <FQDN>
- Platform Type: Linux > OK > SAVE
- Go to create a new WebServer definition ... navigate to Servers > Server Types > Web servers > and click New
- Select node: webserver1node
- Server name: webserver1
- Type: IBM HTTP Server
- Click NEXT > NEXT
- Port: 80
- Web server installation root: /opt/IBM/HTTPServer
- Plug-in installation root: /opt/IBM/HTTPServer/Plugins
- Administration Server Port: 8008
- Username: ihsadmin
- Password: <yourpass>
- Confirm password: <yourpass>
- Click NEXT
- Click FINISH ans SAVE
- Check webserver1 checkbox and click Start button - it should start the server. If not you can reset password:
- Switch to the HTTPServer_installdir/bin directory on your machine.
- Type the following command:
- ./htpasswd -b ../conf/admin.passwd user password
- where user and password are the user ID and password that you want to have administrative authority for IBM HTTP Server.
- Resynchronize all nodes.
- Generate plug-in configuration file ... navigate again to the webservers (same as step 5).
- Select webserver1 and click Generate Plug-in and them click Propagate Plug-in
- Note: Make sure, you will see in a Message dialog box same path to plugin-cfg.xml as is in IHS httpd.conf (last line of the file) file saved in /opt/IBM/HTTPServer/conf/httpd.conf
- Restart webserver
- Navigate to Servers > Web servers > webserver1 > Plug-in properties and click Copy to Web server key store directory
- Setup HTTP over SSL with self signed certificate
- [root@ic ~]# cd /opt/IBM/HTTPServer/
- [root@ic ~]# mkdir keyfiles
- [root@ic ~]# cd bin
- [root@ic bin]# ./ikeyman
- In IBM Key Management click New
- Key database type: CMS
- File Name: webserver-key.kdb
- Location: /opt/IBM/HTTPServer/keyfiles
- Click OK
- Enter your password and select Stash password to a file
- Click OK
- In IBM Key Management click Create a new self-signed certificate
- Key Label: LC Self Signed
- Version: X509 V3
- Key Size: 1024
- Signature Algorithm: SHA1WithRSA
- Other options are optional (set them as you wish)
- Click OK and close ikeyman
- Stop HTTP server and edit httpd.conf file
- [root@ic bin]# cd ../conf/
- backup file: [root@ic conf]# cp httpd.conf httpd.conf.bak
- Edit file and add following lines to the bottom of the file:
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
<IfModule mod_ibm_ssl.c>
Listen 0.0.0.0:443
<VirtualHost *:443>
ServerName ic.ys.cz
SSLEnable
</VirtualHost>
</IfModule>
SSLDisable
Keyfile "/opt/IBM/HTTPServer/keyfiles/webserver-key.kdb"
SSLStashFile "/opt/IBM/HTTPServer/keyfiles/webserver-key.sth"
- start HTTP server and test https url on port 80
- [root@ic conf]# ../bin/apachectl -k start
- Open browser and go to https://<yourhostname>
- You should get info about certificate - it is not a trusted certificate (because it is self-signed certificate)
- Add our cert among trusted ones in WAS Trust Store
- Navigate in Security > SSL Certificate and Key Management > Key stores and certificates
- Click on link CellDefaultTrustStore
- Click on link Signer certificates
- Click Retrieve from port
- Host: <IHS hostname>
- Port: 443
- Alias: webserver-ssl
- And click Retrieve signer information
- Check if it is correct
- OK > SAVE
- Update Connections URL to use SSL
- [root@ic conf]# cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/
- [root@ic bin]# ./wsadmin.sh -lang jython
- wsadmin> execfile("../config/bin_lc_admin/connectionsConfig.py")
- wsadmin> LCConfigService.checkOutConfig("/root/","icCell01")
- Note: Make sure that you have correct cell name in command
- Edit exported file and delete all occurrences of port in href or ssl_href
- I deleted all occurrences of :9081 and :9444 in the file.
- Run wsadmin> LCConfigService.checkInConfig()
- Run wsadmin> synchAllNodes()
- You no what? You are done! Congratulations! now you can take a look in to documentation how to tuneup your Connections
No comments:
Post a Comment