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!

How to add hostnames to AutoSSL certificate

Discussion in 'Security' started by leonep, Jan 26, 2017.

Tags:
  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    84
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi,
    I have successfully added autoSSL ceritficates for all domains . I noticed that it adds certificates for the all subdomains automatically, but how to add smtp.XXXX.XX host for all domains in the certificate without create subdomains for each account??
    thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,338
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The subdomain name must exist in order for the domain validation process to succeed.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    84
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    so ,how to add smtp hostname for all subdomain automatically during account creation?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,338
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You could use hooks to automatically run a custom script after account creation:

    Guide to Standardized Hooks - Software Development Kit - cPanel Documentation

    The Accounts::Create event is documented at:

    Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation

    When developing the custom script, you could make use of the following cPanel API 2 function:

    cPanel API 2 Functions - SubDomain::addsubdomain - Software Development Kit - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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