Apache Cert Creation

Enable ssl site:

root@achtung:/etc/apache2/sites-enabled# ln -sf ../sites-available/default-ssl ./default-ssl

Create :

rroot@achtung:/etc/apache2# openssl req -new -x509 -nodes -out achtung.crt -keyout achtung.key
Generating a 1024 bit RSA private key
....++++++
.........................................................................++++++
writing new private key to 'achtung.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:ES
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:clowncomputing.com
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:
root@achtung:/etc/apache2#

Edit the conf file in order to point the new cert file(s):

root@achtung:/etc/apache2# vi sites-enabled/default-ssl
        SSLEngine on
        SSLCertificateFile    /etc/apache2/apache.pem
        SSLCertificateKeyFile /etc/apache2/apache.crt