Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Enable AutoSSL for User X API

Discussion in 'cPanel Developers' started by activa, Sep 21, 2018.

  1. activa

    activa Well-Known Member

    Joined:
    May 23, 2006
    Messages:
    211
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    I have autossl disabled in feature list, i want to enable the autossl for user x Via API .
    wich command should i look to ?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. activa

    activa Well-Known Member

    Joined:
    May 23, 2006
    Messages:
    211
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. activa

    activa Well-Known Member

    Joined:
    May 23, 2006
    Messages:
    211
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    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 .
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice