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.

78 lines
2.2 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # Using deploy api
  2. Before you can deploy your cert, you must [issue the cert first](https://github.com/Neilpang/acme.sh/wiki/How-to-issue-a-cert).
  3. Here are the scripts to deploy the certs/key to the server/services.
  4. ## 1. Deploy the certs to your cpanel host.
  5. This hook is using UAPI and works in cPanel & WHM version 56 or newer.
  6. ```sh
  7. export DEPLOY_CPANEL_USER=cpanel_username
  8. acme.sh --deploy -d example.com --deploy-hook cpanel_uapi
  9. ```
  10. DEPLOY_CPANEL_USER is required only if you run the script as root and it should contain cpanel username.
  11. ## 2. Deploy ssl cert on kong proxy engine based on api.
  12. Before you can deploy your cert, you must [issue the cert first](https://github.com/Neilpang/acme.sh/wiki/How-to-issue-a-cert).
  13. Currently supports Kong-v0.10.x.
  14. ```sh
  15. acme.sh --deploy -d ftp.example.com --deploy-hook kong
  16. ```
  17. ## 3. Deploy the cert to remote server through SSH access.
  18. (TODO)
  19. ## 4. Deploy the cert to local vsftpd server.
  20. ```sh
  21. acme.sh --deploy -d ftp.example.com --deploy-hook vsftpd
  22. ```
  23. The default vsftpd conf file is `/etc/vsftpd.conf`, if your vsftpd conf is not in the default location, you can specify one:
  24. ```sh
  25. export DEPLOY_VSFTPD_CONF="/etc/vsftpd.conf"
  26. acme.sh --deploy -d ftp.example.com --deploy-hook vsftpd
  27. ```
  28. The default command to restart vsftpd server is `service vsftpd restart`, if it doesn't work, you can specify one:
  29. ```sh
  30. export DEPLOY_VSFTPD_RELOAD="/etc/init.d/vsftpd restart"
  31. acme.sh --deploy -d ftp.example.com --deploy-hook vsftpd
  32. ```
  33. ## 5. Deploy the cert to local exim4 server.
  34. ```sh
  35. acme.sh --deploy -d ftp.example.com --deploy-hook exim4
  36. ```
  37. The default exim4 conf file is `/etc/exim/exim.conf`, if your exim4 conf is not in the default location, you can specify one:
  38. ```sh
  39. export DEPLOY_EXIM4_CONF="/etc/exim4/exim4.conf.template"
  40. acme.sh --deploy -d ftp.example.com --deploy-hook exim4
  41. ```
  42. The default command to restart exim4 server is `service exim4 restart`, if it doesn't work, you can specify one:
  43. ```sh
  44. export DEPLOY_EXIM4_RELOAD="/etc/init.d/exim4 restart"
  45. acme.sh --deploy -d ftp.example.com --deploy-hook exim4
  46. ```
  47. ## 6. Deploy the cert to OSX Keychain
  48. ```sh
  49. acme.sh --deploy -d ftp.example.com --deploy-hook keychain
  50. ```