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.

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:
    37,064
    Likes Received:
    1,287
    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.
     
Loading...

Share This Page