carootcert.pem removed now not regenerating by LetsEncrypt

DewlanceVPS

Verified User
Joined
Oct 3, 2016
Messages
94
Hello,

I removed carootcert.pem and other SSL files from conf file to fix SSL issue.

But now when I use this commands then it does not recreate SSL files inside /usr/local/directadmin/conf/


Error while restarting directadmin: error loading certificate: /usr/local/directadmin/conf/cacert.pem



Thanks.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
If you don't get the files re-created then a request you initiate fails with an error. What are the last bottom 10 lines?
 

DewlanceVPS

Verified User
Joined
Oct 3, 2016
Messages
94
If you don't get the files re-created then a request you initiate fails with an error. What are the last bottom 10 lines?
When I ran LetsEncrypt commands for hostname then it does not show any error however file does not recreate inside config file.

In last 10 line, It only contain this " error loading certificate: /usr/local/directadmin/conf/cacert.pem" and other lines are related to mail server restarted, etc.
 

ikkeben

Verified User
Joined
May 22, 2014
Messages
690
Location
Netherlands Germany
OPENSSL versions?

only one or while ... maybe more.?

I can't help but such things could be important for those who can. :eek:

Also you didn't stil mentioned wich SSL issue??
 

DewlanceVPS

Verified User
Joined
Oct 3, 2016
Messages
94
OpenSSL is ok. I think this is related to permission. Unfortunately I can't see LetsEncrypt logs like If permission was denied or something else however I managed to fix it by manually copying it from domains/ssl certs to conf directory and now SSL is working. ;)

I will fix it later.
 

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
94
Same problem here - how to fix it? Let's encrypt doesn't create files in /usr/local/directadmin/conf/
CentOS 7.8
DA - newest
 

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
94

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
Will

Code:
/usr/local/directadmin/scripts/set_permissions.sh da_files
fix the issue and allow installation of certificates into DirectAdmin?

If it does not help then please show

Code:
ls -la /usr/local/directadmin/conf/ 
ls -dla /usr/local/directadmin/conf/
 

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
94
Still nothing.... @zEitEr ;/

Code:
ls -la /usr/local/directadmin/conf/
razem 36
drwx------ 2 diradmin diradmin 4096 12-16 14:55 .
drwxr-xr-x 7 diradmin diradmin 4096 12-18 17:30 ..
-rw------- 1 diradmin diradmin 2238 12-14 14:33 directadmin.conf
-rw------- 1 diradmin diradmin 3243 12-06 00:12 letsencrypt.key
-rw------- 1 diradmin diradmin 1430 12-06 00:12 letsencrypt.key.json
-rw------- 1 diradmin diradmin 1559 12-16 14:55 license.key
-rw------- 1 diradmin diradmin 1559 11-30 04:01 license.old
-rw------- 1 diradmin diradmin   50 11-17 20:59 my.cnf
-rw------- 1 diradmin diradmin   39 11-17 20:59 mysql.conf
Code:
ls -dla /usr/local/directadmin/conf/
drwx------ 2 diradmin diradmin 4096 12-16 14:55 /usr/local/directadmin/conf/
 
Top