Skip to main content

Using cPanel generated SSL certs with stunnel

Comments

11 comments

  • cPanelLauren
    The following should get you this information:
    0
  • BassTeQ
    The following should get you this information:
    0
  • BassTeQ
    I managed to get this working, using the command line tool 'uapi', then parsing the output YAML in perl to extract the private key and then save it to a file.
    0
  • BassTeQ
    Just stuck with another issue. If I generate a cert with letsencrypt and run the command below it generates a bundle.pem file which works well with the application cat /etc/letsencrypt/live/domain.example.com/fullchain.pem /etc/letsencrypt/live/domain.example.com/privkey.pem > /etc/certs/bundle.pem
    I'm trying to work out how to do this with the data returned from the cpanel application "uapi" The data returned is - cabundle - certificate - key I've tried writing out cabundle followed by key, but the bundle.pem wasn't valid. Appreciate any help. Thanks
    0
  • cPanelLauren
    Well, the cabundle for all of let's encrypt certificates would be the same. What is it you're trying to do with this?
    0
  • BassTeQ
    Well, the cabundle for all of let's encrypt certificates would be the same. What is it you're trying to do with this?

    I'm trying to use the certificate for an icecast server. Update: I've managed to get it working now, found a bug in my script which was causing an issue. On another note, is there a way I can run a custom script after a cPanel SSL cert has been updated for a particular sub-domain? Thanks
    0
  • cPanelLauren
    That would qualify as a hookable event :)
    0
  • cPanelLauren
    Yep, cPanel's maintenance includes checking for SSL certificates. But upcp wouldn't be the only instance in which this occurs, adding a domain, or creating an account also trigger an autossl run for the account.
    0
  • techguide
    The following should get you this information:
    0
  • cPRex Jurassic Moderator
    @techguide - this call will show the friendly name for the certificate:
    0

Please sign in to leave a comment.