mekmek
Verified User
Hi @all
Good morning.
I have some issue with letsencrypt certificate on one of my subdomains.domain.com . It worked smoothly, but for some reason letencrypt auto renew has not worked. For other domains, I have no issues at all at this moment (auto renew was also enabled). So I renewed the letsencrypt certificate manually several times and this works for almost all the subdomains.domain.com instead of the mail.subdomain.com . For this domain, the default https ssl certicate will be served with a valid time of: Sat, 10 Oct 2048 07:47:07 GMT .
When I navigate to my: https://mail.domain.com:2222 address, the correct valid certificate will be served. So it looks ik my opinion a configuration
thing, related to letsencrypt in my apache configuration. The certificate is vallid now till: Sun, 12 Sep 2021 19:03:10 GMT at this moment.
I did some research on the forum here, and the Apache configuration, should be here:
/usr/local/directadmin/data/users/admin/httpd.conf (in my case)
When I open this file, it looks like the certificate is correctly configured:
<VirtualHost 192.168.137.254:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/admin/domains/domain.com.cert.combined
SSLCertificateKeyFile /usr/local/directadmin/data/users/admin/domains/domain.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/admin/domains/domain.com.cacert
ServerName mail.domain.com
ServerAlias webmail.domain.com smtp.domain.com imap.domain.com
ServerAdmin [email protected]
DocumentRoot /home/admin/domains/domain.com/private_html/mail
ScriptAlias /cgi-bin/ /home/admin/domains/domain.com/private_html/mail/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup admin admin
</IfModule>
CustomLog /var/log/httpd/domains/domain.com.mail.bytes bytes
CustomLog /var/log/httpd/domains/domain.com.mail.log combined
ErrorLog /var/log/httpd/domains/domain.com.mail.error.log
<Directory /home/admin/domains/domain.com/private_html/mail>
<FilesMatch "\.(inc|php|phtml|phps|php73)$">
<If "-f %{REQUEST_FILENAME}">
#ProxyErrorOverride on
AddHandler "proxy:unix:/usr/local/php73/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php73
</If>
</FilesMatch>
when I check this, the files are also in the directory: /usr/local/directadmin/data/users/admin/domains
-rw-r----- 1 diradmin mail 5509 Jun 14 22:03 domain.com.cert.combined
-rw-r----- 1 diradmin access 288 Jun 14 22:03 domain.com.key
-rw-r----- 1 diradmin mail 3751 Jun 14 22:03 domain.com.cacert
My host-system is:
This issue was also in the earlier release, before I did a recent upgrade.
Someone a good tip to solve this problem, will be appreciated.
Many thanks!
Have a good day,
Met vriendelijke groet,
Kind regards,
Mek.
Good morning.
I have some issue with letsencrypt certificate on one of my subdomains.domain.com . It worked smoothly, but for some reason letencrypt auto renew has not worked. For other domains, I have no issues at all at this moment (auto renew was also enabled). So I renewed the letsencrypt certificate manually several times and this works for almost all the subdomains.domain.com instead of the mail.subdomain.com . For this domain, the default https ssl certicate will be served with a valid time of: Sat, 10 Oct 2048 07:47:07 GMT .
When I navigate to my: https://mail.domain.com:2222 address, the correct valid certificate will be served. So it looks ik my opinion a configuration
thing, related to letsencrypt in my apache configuration. The certificate is vallid now till: Sun, 12 Sep 2021 19:03:10 GMT at this moment.
I did some research on the forum here, and the Apache configuration, should be here:
/usr/local/directadmin/data/users/admin/httpd.conf (in my case)
When I open this file, it looks like the certificate is correctly configured:
<VirtualHost 192.168.137.254:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/admin/domains/domain.com.cert.combined
SSLCertificateKeyFile /usr/local/directadmin/data/users/admin/domains/domain.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/admin/domains/domain.com.cacert
ServerName mail.domain.com
ServerAlias webmail.domain.com smtp.domain.com imap.domain.com
ServerAdmin [email protected]
DocumentRoot /home/admin/domains/domain.com/private_html/mail
ScriptAlias /cgi-bin/ /home/admin/domains/domain.com/private_html/mail/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup admin admin
</IfModule>
CustomLog /var/log/httpd/domains/domain.com.mail.bytes bytes
CustomLog /var/log/httpd/domains/domain.com.mail.log combined
ErrorLog /var/log/httpd/domains/domain.com.mail.error.log
<Directory /home/admin/domains/domain.com/private_html/mail>
<FilesMatch "\.(inc|php|phtml|phps|php73)$">
<If "-f %{REQUEST_FILENAME}">
#ProxyErrorOverride on
AddHandler "proxy:unix:/usr/local/php73/sockets/admin.sock|fcgi://localhost" .inc .php .phtml .php73
</If>
</FilesMatch>
when I check this, the files are also in the directory: /usr/local/directadmin/data/users/admin/domains
-rw-r----- 1 diradmin mail 5509 Jun 14 22:03 domain.com.cert.combined
-rw-r----- 1 diradmin access 288 Jun 14 22:03 domain.com.key
-rw-r----- 1 diradmin mail 3751 Jun 14 22:03 domain.com.cacert
My host-system is:
Compiled on | Debian 10.0 64-bit |
Compile Date | Jun 17 2021, 12:58:40 |
Server Version | 1.62.2 |
This issue was also in the earlier release, before I did a recent upgrade.
Someone a good tip to solve this problem, will be appreciated.
Many thanks!
Have a good day,
Met vriendelijke groet,
Kind regards,
Mek.