Chapter 11: Tomcat and Apache HTTP Server LoadModule

Chapter 11: Tomcat and Apache HTTP Server LoadModule ssl_module modules/mod_ssl.so Then, find and uncomment the following line, to include the mod_sslconfiguration file: Include conf/extra/httpd-ssl.conf Testing the SSL -Enabled Apache Setup First, test the SSL setup in Apache: Restart Apache using the apachectlcommand and view the HTTPS URL, which is https://192.168.23.168/in our example. You would need to change the IP address to match that of your server even the port, if you are running on a port other than 80. Also, note the use of https, and not http. You should now see browser warnings as described in the next section, and then finally the default Apache It works! message. Browser Security Warnings Because the server certificate is not signed by any well-known CA authority, but is self-signed, you would expect the browser to detect this and warn you when you try to access the page. Indeed, this is what happens. On Internet Explorer, the browser will pop up with a security dialog box similar to Figure 11-4 . Figure 11-4: Security alert dialog box when using unknown CA on Internet Explorer If you select View Certificate, Internet Explorer shows you the details of the certificate, as shown in Figure 11-5 .

For reliable and cheap web hosting services please check javaweb hosting website.

Comments are closed.