iFocus.Life News News - Breaking News & Top Stories - Latest World, US & Local News,Get the latest news, exclusives, sport, celebrities, showbiz, politics, business and lifestyle from The iFocus.Life,

How to Install Apache2 SSL

104 59

    Installing and Configuring OpenSSL

    • 1). Download the most recent version of OpenSSL from the Shining Light Productions website (see Resources section).

    • 2). Install OpenSSL on your computer by running the executable file. Follow the prompts to complete the installation process.

    • 3). Open a command prompt and navigate to the directory where you installed OpenSSL. Run the following command to create a self-signed certificate:

      openssl req -config openssl.cnf -new -out [specified_name].csr -keyout [specified_name].pem

      Provide appropriate answers to the questions.

    • 4). Create a non-password-protected key for Apache2 by running the following command:

      openssl rsa -in [specified_name].pem -out [specified_name].key

    • 5). Create an X.509 certificate by running the following command:

      openssl x509 -in [specified_name].csr -out [specified_name].cert -req -signkey [specified_name].key -days 365

    Installing and Configuring Apache2

    • 1). Open the "conf\httpd.conf" file in a text editor. Remove the comment (#) from the line for "LoadModule ssl_module modules/mod_ssl.so."

    • 2). Create a directory under the conf directory and copy the "[specified_name].cert" and "[specified_name].key" files into the new directory.

    • 3). Open the "conf\ssl.conf" file in a text editor, and remove the "<IfDefine SSL>" and "</IfDefine>" entries.

    • 4). Type the appropriate values for the DocumentRoot, ServerName, ServerAdmin, SSLCertificateFile and SSLCertificateKeyFile entries, depending on your system and file names.

    • 5). Stop and restart Apache2 to enable SSL encryption.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time
You might also like on "Technology"

Leave A Reply

Your email address will not be published.