creation_time bug?

scriptkitty

Verified User
Staff member
Joined
Jul 10, 2019
Messages
304
Hi!

I've noticed that Let's Encrypt SSLs aren't being automatically requested on accounts migrated from cPanel that previously had AutoSSL activated. It looks like a new SSL won't be requested, even with ssl=ON, if this creation_time file doesn't exist. Is this the case?

I've been using the following to circumvent this:

Code:
#!/bin/sh
for u in `ls /usr/local/directadmin/data/users | grep -v httpd`; do
  for d in `cat /usr/local/directadmin/data/users/$u/domains.list`; do
    if ! test -f /usr/local/directadmin/data/users/$u/domains/$d.cert.creation_time ; then
      grep -q ssl=ON /usr/local/directadmin/data/users/$u/domains/$d.conf
      if [[ $? == 0 ]]; then
        echo 100 >> /usr/local/directadmin/data/users/$u/domains/$d.cert.creation_time
      fi
    fi
  done
done

Is this workaround viable?

Thanks,
 
Hi,

I see that there is a autoletsencrypt.sh script. So, I'm guessing that one major difference in cPanel and DirectAdmin is that free SSLs are not enabled by default, and this is intended functionality and not a bug. Is that correct?

Thanks,
 
Back
Top