]>
Commit | Line | Data |
---|---|---|
3db44663 | 1 | #!/usr/bin/env sh |
2 | ||
3 | #Here is a sample custom api script. | |
4 | #This file name is "myapi.sh" | |
5 | #So, here must be a method myapi_deploy() | |
6 | #Which will be called by acme.sh to deploy the cert | |
7 | #returns 0 means success, otherwise error. | |
8 | ||
3db44663 | 9 | ######## Public functions ##################### |
10 | ||
11 | #domain keyfile certfile cafile fullchain | |
12 | myapi_deploy() { | |
13 | _cdomain="$1" | |
14 | _ckey="$2" | |
15 | _ccert="$3" | |
16 | _cca="$4" | |
17 | _cfullchain="$5" | |
4c2a3841 | 18 | |
3db44663 | 19 | _debug _cdomain "$_cdomain" |
20 | _debug _ckey "$_ckey" | |
21 | _debug _ccert "$_ccert" | |
22 | _debug _cca "$_cca" | |
23 | _debug _cfullchain "$_cfullchain" | |
4c2a3841 | 24 | |
3db44663 | 25 | _err "Not implemented yet" |
26 | return 1 | |
27 | ||
28 | } |