Ubuntu SSL GuideΒΆ

I basically used this guide, https://help.ubuntu.com/6.06/ubuntu/serverguide/C/httpd.html and did the following:

$ mkdir /etc/apache2/ssl/
$ openssl genrsa -out phpmyadmin.ciy.com.key
$ openssl req -new -key phpmyadmin.ciy.com.key -out phpmyadmin.ciy.com.csr

Entered the following information:

Enter pass phrase for phpmyadmin.ciy.com.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]:US
State or Province Name (full name) [Some-State]:Missouri
Locality Name (eg, city) []:Joplin
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Christ In Youth
Organizational Unit Name (eg, section) []:Web
Common Name (eg, YOUR name) []:phpmyadmin.ciy.com
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

Self-Signed the certificate:

$ openssl x509 -req -days 365 -in phpmyadmin.ciy.com.csr -signkey phpmyadmin.ciy.com.key -out phpmyadmin.ciy.com.crt