Skip to main content

json api call with cpanel for ssl details

Comments

3 comments

  • cPanelMichael
    Hello :) Could you provide more details on how you are utilizing the SSL::listcrts API2 function? How does it look in your application? Thank you.
    0
  • amvis
    These are the three calls, which calling the SSL::listkeys,SSL::listcsrs,SSL::listcrts IP:2086/json-api/cpanel?user=sslacnt&cpanel_jsonapi_module=SSL&cpanel_jsonapi_func=listkeys&cpanel_jsonapi_version=2 IP:2086/json-api/cpanel?user=sslacnt&cpanel_jsonapi_module=SSL&cpanel_jsonapi_func=listcsrs&cpanel_jsonapi_version=2 IP:2086/json-api/cpanel?user=sslacnt&cpanel_jsonapi_module=SSL&cpanel_jsonapi_func=listcrts&cpanel_jsonapi_version=2 Here in the three cases, i have got the details from keys and csrs but not from crts?
    0
  • cPanelMichael
    Hello :) If you are using WHM, you could try using WHM API 1. EX: hxxp://example.com:2086/cpsess123456789/json-api/fetchsslinfo?api.version=1&domain=test-domain.com
    Or, with cPanel, you could try using UAPI. EX: hxxp://example.com:2086/cpsess123456789/execute/SSL/list_certs
    A full list of SSL options with UAPI are available at: UAPI - SSL Thank you.
    0

Please sign in to leave a comment.