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
 

brivelt

Verified User
Joined
May 1, 2014
Messages
32
thanks!

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

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 

brivelt

Verified User
Joined
May 1, 2014
Messages
32
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.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,854
Location
GMT +7.00
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?
 

brivelt

Verified User
Joined
May 1, 2014
Messages
32
Hi Alex,

We're using hostname/phpmyadmin and yes we do have nginx as a frontend.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,854
Location
GMT +7.00
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.
 

brivelt

Verified User
Joined
May 1, 2014
Messages
32
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?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,854
Location
GMT +7.00
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
 

brivelt

Verified User
Joined
May 1, 2014
Messages
32
Thanks again. exim cert and key were not updated so did this manually.
 
Top