Skip to main content

UAPI Functions SSL::list_certs -- finding single installed certificate

Comments

5 comments

  • cPanelMichael
    Hello, I believe the following UAPI function is more useful for the information you are seeking: UAPI Functions - SSL::installed_host - Software Development Kit - cPanel Documentation Could you let us know if that helps? Thank you.
    0
  • swbrains
    Thanks! I just tried calling install_host and got the response below. I'm not sure what I'm doing wrong (I do know it's authenticating properly with the account's user ID and password)... The URL that I called from my script: ,"data":null,"messages":null,"metadata":{}} The site running the script that outputs this information after calling the function has a valid SSL cert installed per the browser developer panel (see screenshot attached): 41801 Thanks again!
    0
  • cPanelMichael
    Hello, It looks like the SSL:installed_host is intended for accounts assigned a dedicated IP address. Could you try the "installed_hosts" UAPI function instead? There's an extra "s" at the end: UAPI Functions - SSL::installed_hosts - Software Development Kit - cPanel Documentation Thank you.
    0
  • swbrains
    Ah yes! Thanks! I just tried install_hosts and that does return valid certificate information. Is that function designed to return just the *one* installed certificate for this account like cPanel shows and ignore other certificates that may have also been installed at one time?
    0
  • cPanelMichael
    Is that function designed to return just the *one* installed certificate for this account like cPanel shows and ignore other certificates that may have also been installed at one time?

    Hello, Yes, it's designed to show the certificates that are installed under that cPanel account, as opposed to providing a list of all CRT files generated/existing for that account. Thank you.
    0

Please sign in to leave a comment.