Skip to main content

Path to domain specific SSL certificate

Comments

5 comments

  • cPanelMichael
    Hello @Ganga, The directory you are looking for is located at: /var/cpanel/ssl/apache_tls/$domain.tld/ You may also find the following WHM API 1 and UAPI functions helpful: WHM API 1 Functions - fetch_ssl_certificates_for_fqdns - Developer Documentation - cPanel Documentation UAPI Functions - SSL::installed_host - Developer Documentation - cPanel Documentation Thank you.
    0
  • Ganga
    Thanks @cPanelMichael ! However I can only see the certificate file, the private key file and the ca bundle are missing. Are this stored elsewhere on cPanel outside of the /home/USER dir? In other words, I would like to understand each time a certificate is installed, exactly WHICH FILES in the entire cPanel installation are affected and where cert, key and ca bundle are saved outside of the /home/USER dir. Thanks for your help.
    0
  • cPanelMichael
    Hello @Ganga, Did you check the directory referenced in my previous response? /var/cpanel/ssl/apache_tls/$domain.tld/ Thank you.
    0
  • thowden
    Hi All This topic comes up as the #1 search result for "cpanel file location ssl certificate" or similar, but the detail here is (was) incomplete. The /var/cpanel/ssl/apache_tls/$domain.tld/ provides only the certificate or certificate bundle and not the location of the private key. All the relevant files, certs, keys, etc. appear to be available in the /home/USER/ssl directory Hope this helps.
    1
  • ssavchenko

    Thank you a lot for both answers to thowden and cPanelMichael. You helped me a lot with the SSL installation check 🙏

    0

Please sign in to leave a comment.