Menu

Friday, 14 April 2017

How to Configure IHS (Httpd.conf ) with WAS 8.5 for Port :443 (https://) and install certificates.




Step 1: Go to Installed IHS , conf directory,


Step 2:  open httpd.conf in edit mode.


Screenshot 1:





Step 3: Add lines:

------------------------------------------------------------------------


LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
Listen 0.0.0.0:443
#IPv6 support:
Listen [::]:443
<VirtualHost *:443>
SSLEnable
ServerName  *.middlewarebox.com
SSLProtocolDisable SSLv2
KeyFile  F:\IBM_INSTALL\IBMIHS\SSL\testkey.kdb
SSLStashFile  F:\IBM_INSTALL\IBMIHS\SSL\testkey.sth
</VirtualHost>
SSLDisable



LoadModule was_ap22_module  F:\IBM_INSTALL\IBMIHS\WebSphere\Plugins\bin\32bits\mod_was_ap22_http.dll

WebSpherePluginConfig  F:\IBM_INSTALL\IBMIHS\WebSphere\Plugins\config\New_webserver\plugin-cfg.xml

--------------------------------------------------------------------------------


where,
keyfile is for created .kdb location - certificates
SSLStashFile is for password.
LoadModule was_ap22_module
             F:\IBM_INSTALL\...\Plugins\bin\32bits\mod_was_ap22_http.dll     ( dll is for Wiindows )


LoadModule ibm_ssl_module modules/mod_ibm_ssl.so       ( .so is for UNIX ).

LoadModule was_ap22_module

       /IBMWAS/IHS/WebSphere/bin/64bits/mod_was_ap22_http.so  ( .so is for UNIX ).




also check

ServerName middlewarebox:443

Screenshot 2:






Step 4: edit hosts file  and add certificates common name to hosts

in windows go to  location  C:\Windows\System32\drivers\etc

Screenshot 3:




Step 4: restart the Web server :

Step 5: Check from browser using DNS name , provided in certificates and hosts file.

Screenshot 4:



Screenshot 5:




Step 6: Check the certificate Information { in my case i have created Self -sign Certificates }

Screenshot 6:




------------------------------------------------------------------------------------------------------------

IMP NOTE :

If  you want to configure at port  :443 only.

put # comment at all the lines of  port :80


#Listen 0.0.0.0:80
#Listen [::]:80
#ServerName localhost:80


the Application will work at port :443 only.

------------------------------------------------------------------------------------------------------------


Reference Doc : https://www-01.ibm.com/




No comments:

Post a Comment