• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

SSL Certificate Files Location

dieselpower44

Basic Pleskian
I'm trying to find the location of my SSL certificate files (added using Plesk interface) but can't seem to find them. Tried searching *.pem and similar but found nothing.

I've seen various articles point to /home/httpd/vhosts/domain.com/cert/httpd.pem but that doesn't seem to be the case.

If it makes a difference, I'm running Plesk 12.5 on CentOS 6.

Thanks.
 
Hi Diesel,

I think the location is /usr/local/psa/var/certificates/

Please take note that you can know the exact location and names of the SSL files by looking at your
last_nginx.conf file ..

eg
Code:
less /var/www/vhosts/system/ben-abdi.com/conf/last_nginx.conf
Code:
[...]
ssl_certificate             /usr/local/psa/var/certificates/certTp2DpZM;
ssl_certificate_key         /usr/local/psa/var/certificates/certTp2DpZM;
[...]

Hope that helps ...
 
Hi again Abdi,

So the certificates directory does indeed contain the certificates (with cryptic names, presumably for security?) however attempting to decipher which cert represents which domain via the last_nginx.conf file did not work. My last_nginx.conf file only contains two comment lines stating that the file is auto-generated and must not be edited.

To your knowledge is there anywhere else that defines the actual domain => file pairings?

It's not a big deal to just manually check but for future reference it could be helpful.

Thanks!
 
Hi dieselpower44,

depending to your hosting settings, you have to view the file "last_ip_default.conf" / or "httpd_ip_default.conf" instead of "last_nginx.conf" and "last_httpd.conf" ( all domain configuration files are located at "/var/www/vhosts/system/YOUR_DOMAIN.COM/conf" ).
 
Last edited by a moderator:
Hi dieselpower44,

depending to your hosting settings, you have to view the file "last_ip_default.conf" / or "httpd_ip_default.conf" instead of "last_nginx.conf" and "last_httpd.conf" ( all domain configuration files are located at "/var/www/vhosts/system/YOUR_DOMAIN.COM/conf" ).

I don't have the files "last_ip_default.conf" and "httpd_ip_default.conf" on test server ...

Code:
[root@a93-91-167-172 conf]# ls -l /var/www/vhosts/system/ben-abdi.com/conf

total 32

-rw-------. 1 root apache 6530 Nov 30 16:15 httpd.conf
-rw-------. 1 root apache 6991 Nov 30 16:15 httpd.conf.bak
lrwxrwxrwx. 1 root root     10 Nov 30 16:15 last_httpd.conf -> httpd.conf
lrwxrwxrwx. 1 root root     10 Nov 30 16:15 last_nginx.conf -> nginx.conf
-rw-------. 1 root nginx  1904 Nov 30 16:15 nginx.conf
-rw-------. 1 root nginx  1954 Nov 30 16:15 nginx.conf.bak
drwxr-xr-x. 2 root root   4096 Feb  5  2015 siteapp.d
-rw-r--r--. 1 root root      2 Dec  2 03:10 stat_ttl.conf
 
Hi abdi,

in this case, your IP has no "primary domain" associated with the shared IP.
 
Hello UFHH01,

For clarification "last_ip_default.conf" and or "httpd_ip_default.conf" file is ONLY existent for a domain name that is set to be the default for the respective server IP address while for the rest of the domain names those files don't exist ..

However, in both scenarios default domain or not it's the same SSL path definitions ...

Code:
less /var/www/vhosts/system/ben-abdi.com/conf/last_ip_default.conf
Code:
[...]
ssl_certificate             /usr/local/psa/var/certificates/certTp2DpZM;
ssl_certificate_key         /usr/local/psa/var/certificates/certTp2DpZM;
[...]

Code:
less /var/www/vhosts/system/ben-abdi.com/conf/last_nginx.conf
Code:
[...]
ssl_certificate             /usr/local/psa/var/certificates/certTp2DpZM;
ssl_certificate_key         /usr/local/psa/var/certificates/certTp2DpZM;
[...]
 
Back
Top