Home » Apache, Featured

Apache, OpenSSL

13 February 2008 699 views No Comment

[print_link]

Introduction

This article discusses how to configure Apache and OpenSSL to serve https content. We assume Apache is installed and OpenSSL commands are available in the PATH environment variable. Otherwise install Apache and OpenSSL using yum or apt.

Create a working directory

Let’s call it sslcert:

$mkdir sslcert

Create two subdirectories under it

Create 2 subdirectories under sslcert. Let’s call them certs and private.

$cd sslcert
$mkdir certs private

Create a database to keep track of each certificate signed

Run the following commands:

$echo '01' > serial
$touch certindex.txt

Make a custom config file for openssl to use

Copy the config elements into a file called openssl.cnf. (edit as needed):

ssl11.JPG
ssl21.JPG

Pages: 1 2

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.