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!

SOLVED cPanel Api 2 install SSL problem

Discussion in 'cPanel Developers' started by Killy123, Jul 14, 2017.

Tags:
  1. Killy123

    Killy123 Member

    Joined:
    Oct 28, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Hi, I am trying to install new SSL following the documentation
    cPanel API 2 Functions - SSL::installssl - Software Development Kit - cPanel Documentation, but when I make a request to install certificate I get this response from the API:
    Code:
    {"cpanelresult":{"error":"The ASN.1 data is corrupt. Its header indicates a length of 67 bytes, but its content is 531 bytes long.","postevent":{"result":1},"module":"SSL","event":{"result":1},"preevent":{"result":1},"data":[{"result":0,"output":"The ASN.1 data is corrupt. Its header indicates a length of 67 bytes, but its content is 531 bytes long."}],"func":"installssl","apiversion":2}}
     
  2. Killy123

    Killy123 Member

    Joined:
    Oct 28, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    I switched to the Uapi and everything works fine you can close the thread, Thank you!
     
    Infopro likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to address the issue by using the SSL::install_ssl UAPI function. Regarding the cPanel API 2 function, here's a note from our documentation regarding what likely lead to the issue:

    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