Example: Set up IHS security SSL
Example: Configure SSL key database and certificate
- Log on as your user, for example wasadmin
- Set environment
export PATH=/opt/IHS90/bin:$PATH- Verify path
myhost:/root # which gsk7cmd /opt/IHS90/bin/gsk7cmd- Create key directory
cd /opt/IHS90
mkdir keys- Create a key database
gsk7cmd -keydb -create -db /opt/IHS90/keys/env.kdb -pw password -type cms -expire 360 -stash
myhost example...
gsk7cmd -keydb -create -db /opt/IHS90/keys/MyHost.kdb -pw password -type cms -expire 720 -stash
- Generate self-signed certificate
gsk7cmd -cert -create -db /opt/IHS90/keys/MyHost.kdb -pw password -size 1024 -dn "CN=s1ad6c.myco.com,O=BigBox,OU=IHS,ST=TX,C=US" -label IHS -default_cert yes -expire 720- Edit /opt/IHS90/conf/httpd.conf
- Set SSL stanza. For example...
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so Listen 443 <VirtualHost *:443> SSLEnable SSLProtocolDisable SSLv2 </VirtualHost> KeyFile /opt/IHS90/MyHost.kdb SSLDisable- Restart IHS
sudo /opt/IHS90/bin/apachectl stop
sudo /opt/IHS90/bin/apachectl start- Check for errors...
/opt/IHS90/logs/error_log- Test by pulling up secure page...
https://myhost.myco.comExample: Add Verisign certificate
- Generate certificate request and submit to VeriSign
- Request a secure certificate from a VeriSign
- Set the production key file as the current key file.
- Receive the certificate and test the production key file.
Generate Web server definition in WAS console
If our web server definition is not in admin console, to create...
- Log on to web server and copy definition script from web server to appserver. For example...
cd /opt/IHS90/Plugins/bin
scp configureWebServerName.sh wasadmin@AppServerName:/opt/WAS90/AppServer/profiles/MyCo/bin- Log on to appserver and run...
cd /opt/WAS90/AppServer/profiles/MyCo/bin
./configuresMyWebServer.sh- Log on admin console and verify definition
- Verify virtual hosts are defined for Web server ports
Virtual Hosts > default_host > Host AliasesIf we add a virtual host, cycle the appserver
IHS post-install
Web server logs The web server logs directory is... /opt/IHS90/logsLog rotation To configure IHS log rotation...
- Edit httpd.conf
- Comment out existing CustomLog...
#CustomLog logs/access_log common- Add following directives...
# Rotate the logfile whenever it reaches a size of 50 megabytes
CustomLog "| /opt/IHS90/bin/rotatelogs /opt/IHS90/logs/access_log 50M" common
CustomLog "| /opt/IHS90/bin/rotatelogs /opt/IHS90/logs/error_log 50M" common- Restart IHS
sudo ../bin/apachectl restartIf rotatelog does not work, to rotate logs manually while not dropping any user connections...
mv access_log access_log.old
mv error_log error_log.old
apachectl graceful
sleep 600
gzip access_log.old error_log.oldConfigure test page for all web servers
- Copy testpage.html to ALL webservers docroot
- Additionally cp testpage.html to notfound.html and make sure a copy exists on ALL webservers docroot
Verify location of document root
cd $REPORTS
grep DocumentRoot *_httpd.conf | grep -v \#Sample output...
myhost_httpd.conf:DocumentRoot "/opt/IHS90/htdocs"To test...