phpmyadmin ssl cert path

brivelt

Verified User
Joined
May 1, 2014
Messages
32
Hi,

I'm running DA on https, but phpmyadmin throw an error cause it's using a self-signed certificate.

Where can I change the path to the cert so I can attach our valid ssl certificate?

-Brian
 
thanks!

One question tho.. is it better to just replace the cert or change the path to the cert just for phpmyadmin?
 
thanks!

One question tho.. is it better to just replace the cert or change the path to the cert just for phpmyadmin?
We replace self-signed Certificates with commercial Certificates, so we're always using documented paths and don't need to worry about updates breaking them.

Or am I missing part of your question?

Jeff
 
No you got it right.

Although I've replaced the contents of the server.crt and server.key files with the key and certificate of our comodo certificate but it still throws the self signed localhost certificate when accessing phpmyadmin. I have already reloaded httpd, restarted and rebooted the server.
 
Hello,

Do you use https://IP/phpmyadmin/? https://hostname/phpmyadmin/? Or https://user-domain/phpmyadmin/ to access phpMyAdmin?
Do you have nginx as a frontend?
 
Hi Alex,

We're using hostname/phpmyadmin and yes we do have nginx as a frontend.
 
Then you should update certs in /etc/nginx as well (dovecot and exim require also updates of certs). But to be sure that you do not miss anything you should better update them through Directadmin as user admin on its user level.
 
Thanks, adding the certs via DA did the trick!
Is it still necessary to update the certs in /etc/nginx? Or is this covered by DA?
 
You're welcome. There is no need to update the certs anywhere else since you did it in Directadmin. Directadmin has already updated all the needed files: if to say about nginx+apache. Exim and dovecot might require additional care, not too sure though. Just compare the files time of last modification: /etc/exim.cert and /etc/exim.key
 
Thanks again. exim cert and key were not updated so did this manually.
 
Back
Top