cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston

activa

Well-Known Member
May 23, 2006
213
1
168
Morocco
cPanel Access Level
Root Administrator
Hi @activa

If you're looking to update the featurelist to allow/enable AutoSSL the whmapi1 listed here will do that for you: WHM API 1 Functions - update_featurelist - Developer Documentation - cPanel Documentation

Thanks!
hello sir

we don't want to update package, the package is used by so many other sites, we want only to force auto ssl for 1 account. and we don't want to create new package and affect it to those account that we need to add auto ssl .

in WHM we can do it from interface Home » SSL/TLS » Manage AutoSSL and Override the feature list setting and force AutoSSL to be enabled.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello @activa

You can try running the following for the specific user:
Code:
/usr/local/cpanel/bin/autossl_check --user=$user
That should override your autoSSL settings

Ultimately though - you'll have to do this every three months for that user manually, the best thing to do would be to create a new package/feature list for that account so that autoSSL is run automatically.
 

activa

Well-Known Member
May 23, 2006
213
1
168
Morocco
cPanel Access Level
Root Administrator
Hello @activa

You can try running the following for the specific user:
Code:
/usr/local/cpanel/bin/autossl_check --user=$user
That should override your autoSSL settings

Ultimately though - you'll have to do this every three months for that user manually, the best thing to do would be to create a new package/feature list for that account so that autoSSL is run automatically.
as mensioned above, we can't use two packages, in fact we want to offer the Auto-SSL as addon for our package, until now we do this manually, when the client purchase the addon we force the auto ssl manually from whm, now we want to do this automagically with php API .

though how whm handel this from backed, we need to send a command API to tell cpanel force Auto-SSL for use X, then cPanel take care for the rest. really it was surprise for us that cPanel hasn't a command in thier API to do this !!!

So to resume we want to enable AUTO-SSL for users who assigned package & feature list has auto-ssl disabled .
 

Giuseppe

Registered
Apr 23, 2016
2
2
53
Italy
cPanel Access Level
Root Administrator
You can use these two api commands:

Code:
whmapi1 add_override_features_for_user user=$user features=%7B%22autossl%22%3A1%7D  
whmapi1 start_autossl_check_for_one_user username=$user
This solve your problem.
 
  • Like
Reactions: pirulipipi