]>
Commit | Line | Data |
---|---|---|
f845b371 | 1 | #!/usr/bin/env sh |
2 | ||
3 | #Here is a script to deploy cert to nginx server. | |
4 | ||
5 | #returns 0 means success, otherwise error. | |
6 | ||
7 | ######## Public functions ##################### | |
8 | ||
9 | #domain keyfile certfile cafile fullchain | |
10 | nginx_deploy() { | |
11 | _cdomain="$1" | |
12 | _ckey="$2" | |
13 | _ccert="$3" | |
14 | _cca="$4" | |
15 | _cfullchain="$5" | |
16 | ||
17 | _debug _cdomain "$_cdomain" | |
18 | _debug _ckey "$_ckey" | |
19 | _debug _ccert "$_ccert" | |
20 | _debug _cca "$_cca" | |
21 | _debug _cfullchain "$_cfullchain" | |
22 | ||
23 | _err "deploy cert to nginx server, Not implemented yet" | |
24 | return 1 | |
25 | ||
26 | } |