- 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:
Is this workaround viable?
Thanks,
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,