phpMyadmin certificate

afnaf

Verified User
Joined
Aug 8, 2012
Messages
20
Hello, i turned on SSL only in the config.inc.php in phpmyadmin, but it uses a local certificate and not the one we have on the main site at :2222. Any ideas? Im thinking that it uses the default Apache one ?
 
To have SSL on phpMyAdmin and Roundcube, you need to add you certificate and private key to these two files:

Code:
/etc/httpd/conf/ssl.crt/server.crt (your certificate here)
/etc/httpd/conf/ssl.key/server.key (rsa private key here)

Then restart apache:
Code:
service httpd restart

Edit: Also if you have a INTERMEDIATE CA, then I add it by editing /etc/httpd/conf/extra/httpd-vhosts.conf - almost at the bottom of the file, find these two lines:

Code:
    SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

After those two lines, add this new line, but make sure you replace SERVER.HOSTNAME.COM with your own:
Code:
SSLCACertificateFile /usr/local/directadmin/data/users/admin/domains/SERVER.HOSTNAME.COM.cacert

Save the changes, and create the file at this path (again change SERVER.HOSTNAME.COM):
Code:
/usr/local/directadmin/data/users/admin/domains/SERVER.HOSTNAME.COM.cacert

In that file you add your INTERMEDIATE CA root certificate, then you restart apache again:
Code:
service httpd restart
 
Last edited:
Back
Top