Configuring One-Way SSL Authentication
- Procedure
- Ensure that the mod_ssl module is available in the Apache HTTP server installation.
- Enable the mod_ssl module as follows:
- Open the APACHE_HOME/conf/httpd.conf file for editing.
- Uncomment the following directive in the
httpd.conf file, if commented. If this directive does not exist, add it in the file:
LoadModule ssl_module
APACHE_ROOT/modules/mod_ssl.so
where APACHE_ROOT is the actual path of the Apache HTTP server installation which must be SSL enabled.
- Uncomment the following line in the file:
#Include conf/extra/httpd-ssl.conf
- Save the changes in the file.
- Open the
APACHE_HOME/conf/extra/httpd-ssl.conf
file for editing.
- Set the values for the specified directives (if not already set), as follows:
SSLEngine on
SSLCertificateFile "Name_of_Server_public_certificate"
SSLCertificateKeyFile "Name_of_Server_private_key"
SSLCACertificateFile Name_of_CA_Certificate
SSLVerifyClient none
- Set the Listen directive if you want to change the default port value for SSL requests:
Listen listening_port_value
- Save the changes made to the APACHE_HOME/conf/extra/httpd-ssl.conf file.
- Set the values for the specified directives (if not already set), as follows:
- Import the CA certificate as specified in the SSLCACertificateFile directive of the Apache Server configuration.
- Verify that the SSL configuration is working.
- Open a web browser window.
- Enter the following URL to verify the connection to the Apache server.
http://machine_name:listening_port_value
For example,
http://<machine-name>:8443
- Verify that the connection to the Apache server is successful.