How enable SSL feature for existing users

Ghadamyari

Verified User
Joined
Aug 13, 2011
Messages
32
I could finally manage to get Let's Encrypt working on a client's directadmin server

The SSL feature was disabled in his main reseller package. Now he has more than 300 users in the server that don't have SSL feature enabled in their accounts. How can I enable the SSL on all accounts at once?
 
Hello,

To enable SSL for users you should be logged in Directadmin as a reseller and update their packages (enable SSL).

For those users who have customized package you will need to either modify them manually in Directadmin (one by one), or update their user.conf files in a console.
 
Thank you!

The following commands worked for me:

Code:
cd /usr/local/directadmin/data/users

files=`find . -name "user.conf"`; for file in $files; do sed -i $file -e "s,ssl=OFF,ssl=ON,g"; done;

confirm by:
Code:
files=`find . -name "user.conf"`; for file in $files; do cat $file | grep -i SSL; done;
 
Back
Top