Skip to main content

XML API - sslv3 alert handshake failure

Comments

9 comments

  • cPanelMichael
    Hello, Does the issue persist if you use the same function on it's own with the "API Shell" option in WHM or directly from a browser address bar? This should help determine if it's isolated to your custom script or the API function itself. Thank you.
    0
  • Posterum
    Thanks for your fast reply. If i do it directly from the address bar (URL:
    https://**IP**:2083/xml-api/cpanel?domain=****.com&email=**email**&password=**password**&quota=500&cpanel_xmlapi_user=****.com&cpanel_xmlapi_module=Email&cpanel_xmlapi_func=addpop&cpanel_xmlapi_apiversion=2
    ) I get this:
    Access denied 0 Access denied
    I get the same whether API Shell is enabled or not, if that's what you mean?
    0
  • cPanelMichael
    Hello, Here's a working example:
    https://1.2.3.4:2083/cpsess4565251922/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Email&cpanel_jsonapi_func=addpop&domain=cptest01.com&email=test1&password=12345luggage&quota=100
    Do you experience the same issue when formatting the URL like this? Note the importance of the session number. Thank you.
    0
  • Posterum
    Thanks, I get this, Access denied:
    {"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}
    I get this error when trying to connect to the mail server using imap port 993
    stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    0
  • cPanelMichael
    Your access level is listed as "Website Owner". Do you have root access to this server? If not, could you consult with your web hosting provider for assistance with the IMAP error? Thank you.
    0
  • Posterum
    Yes I have root access to the server. I do not have a hosting provider that can assistance me.
    0
  • cPanelMichael
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • Posterum
    Thank a lot, the ticket id is 6610623
    0
  • cPanelMichael
    To update, the user has been advised to try the "--insecure" flag to verify if the failure is due to insecure resources or SSL in the script. Thank you.
    0

Please sign in to leave a comment.