The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    2
    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::set_primary_ssl
    https://documentation.cpanel.net/display/SDK/UAPI+Functions+-+SSL::set_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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page