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!

Setting Primary Shared SSL via API

Discussion in 'cPanel Developers' started by Craig Marchant, Jun 6, 2016.

Tags:
  1. Craig Marchant

    Craig Marchant Registered

    Joined:
    Dec 22, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, VIC, Australia
    cPanel Access Level:
    DataCenter Provider
    Hi,

    Apologies if I have missed this but I do not seem to be able to find a way to set a shared ssl for the server itself via the API's.

    I can find similar functions in the UAPI documentation, but I think that would be on a per account basis and not server wide.

    https://documentation.cpanel.net/display/SDK/UAPI+Functions+-+SSL%3A%3Aset_primary_ssl
    https://documentation.cpanel.net/display/SDK/UAPI+Functions+-+SSL%3A%3Aset_ssl_share

    Does anything exist for this or would we need to continue to set these settings via the WHM -> Manage SSL Hosts screen?

    Thanks,
    Craig
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    No existing API functions exist to manipulate this option. I suggest opening a feature request for the ability to configure this option through WHM API 1 via:

    Submit A Feature Request

    As a workaround, you can manually update the following file to change the shared SSL certificate:

    Code:
    /var/cpanel/.sharedcrtname
    EX:

    Code:
    # cat  /var/cpanel/.sharedcrtname
    host.domain.com
    Note you can create the file if it does not exist by default.

    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