You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
592 B

8 years ago
  1. #!/usr/bin/env sh
  2. #Here is the script to deploy the cert to your cpanel account by the cpanel APIs.
  3. #returns 0 means success, otherwise error.
  4. #export DEPLOY_CPANEL_USER=myusername
  5. #export DEPLOY_CPANEL_PASSWORD=PASSWORD
  6. ######## Public functions #####################
  7. #domain keyfile certfile cafile fullchain
  8. cpanel_deploy() {
  9. _cdomain="$1"
  10. _ckey="$2"
  11. _ccert="$3"
  12. _cca="$4"
  13. _cfullchain="$5"
  14. _debug _cdomain "$_cdomain"
  15. _debug _ckey "$_ckey"
  16. _debug _ccert "$_ccert"
  17. _debug _cca "$_cca"
  18. _debug _cfullchain "$_cfullchain"
  19. _err "Not implemented yet"
  20. return 1
  21. }