Where to find SSL related files on DA and CentOS?

mbsmt

Verified User
Joined
Jul 24, 2013
Messages
140
Location
Mashhad, Iran
For some reasons, I need to copy and use the SSL generated files for a domain to another domain (username). The operating system on my VM is CentOS and I uses LetsEncrypt for SSLs.
May you tell me where can I find the generated SSL files for each account and what are those files which I have to copy in this regard please?

This is the actual issue I want to do:
1- I have an account with a domain like domain.com and generated a whildcard SSL for it.
2- I have another account like sub1.domain.com without any generated SSL.
3- I want to use the whildcard SSL (*.domain.com) for sub1.domain.com and other similar accounts.
 
/usr/local/directadmin/data/users/USERNAME/httpd.conf or nginx.conf
there you will see full path to included certs
they will be in:
/usr/local/directadmin/data/users/USERNAME/domains/
 
/usr/local/directadmin/data/users/USERNAME/httpd.conf or nginx.conf
there you will see full path to included certs
they will be in:
/usr/local/directadmin/data/users/USERNAME/domains/
I found these lines:

Code:
SSLCertificateFile /usr/local/directadmin/data/users/helpicalir/domains/domain.com.cert.combined
SSLCertificateKeyFile /usr/local/directadmin/data/users/helpicalir/domains/domain.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/helpicalir/domains/domain.com.cacert

Now what should I do? In my mind, I have to copy these files to the new username directory with renaming domain.com to sub1.domain.com.
Am I right? What else should I do after that?
 
you don't need to copy this files. Just modify configs at new subdomain, and set paths to certs and key from main domain. You can try to use symlinks. I think there must be some correct solution for LetsEncrypt wildcard cert integration for all sudomains even if they in another accounts.
 
you don't need to copy this files. Just modify configs at new subdomain, and set paths to certs and key from main domain. You can try to use symlinks. I think there must be some correct solution for LetsEncrypt wildcard cert integration for all sudomains even if they in another accounts.
Unfortunately, I could not find anything in this regard. I am doing these stuff as DA does not provided Auto SSL Enabled domains at this time. As I read, they are working on it but it seems this option is not released up to now.
 
Autossl was release with the latest update and f DA

did you upgrade?
 
Yes I did. The current version is 1.62.4.
But what should I do for it in the current version?
 
Last edited:
What do you mean?

You make sure its setup based on the documentation.
I don't see anything about AutoSSL feature in new DA. Also, I did not find any related document for it anywhere.
Could you guide me please to reach to this feature in DA?
 
I did everything mentioned in provided link.
I expected to have an auto generated SSL for the new accounts, but after account creation, anything had not generated in SSL section for that account!
 
Back
Top