CentOS 6 and phpMyAdmin, SSL and other nice things.

-I never liked web GUIs very much, but now I had to install php MyAdmin on a test
server as proof of concept. So, here’s what I did in order to get SSL up and
1. Install CentOS 🙂
2. Install httpd and mysql.
3. Install mod_ssl and openssl.
4. Then, as root:
-openssl genrsa -des3 -out apachekey.pem 2048
-openssl req -new -key apachekey.pem -out apachekey.csr
-openssl x509 -req -days 365 -in apachekey.csr -signkey apachekey.pem -out apachecert.pem
-mkdir /etc/pki/tls/http
-cp apachecert.pem /etc/pki/tls/http/
-cp apachekey.pem /etc/pki/tls/http/
5. Edit /etc/httpd/conf.d/ssl.conf :
SSLCertificateFile /etc/pki/tls/http/apachecert.pem
SSLCertificateKeyFile /etc/pki/tls/http/apachekey.pem
DocumentRoot “/var/www/html/ssl”
6. mkdir -p /var/www/html/ssl
7. Then:
-cd /etc/pki/tls/http
-cp apachekey.pem apachekey.pem.cryp
-openssl rsa -in apachekey.pem.cryp -out apachekey.pem
-chmod go-rw apachekey.pem
-service httpd restart


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s