Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
76c1ed66
Commit
76c1ed66
authored
Feb 12, 2017
by
David Kerr
Browse files
Additional documentation for the unifi example.
parent
6f4abe95
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/README.md
View file @
76c1ed66
...
@@ -143,7 +143,21 @@ export ACME_DEPLOY_SSH_REMOTE_CMD="openssl pkcs12 -export \
...
@@ -143,7 +143,21 @@ export ACME_DEPLOY_SSH_REMOTE_CMD="openssl pkcs12 -export \
acme.sh
--deploy
-d
unifi.example.com
--deploy-hook
ssh
acme.sh
--deploy
-d
unifi.example.com
--deploy-hook
ssh
```
```
Note how i
n this exmple we execute several commands on the remote host
I
n this exmple we execute several commands on the remote host
after the certificate files have been copied... to generate a pkcs12 file
after the certificate files have been copied... to generate a pkcs12 file
compatible with Unifi, to import it into the Unifi keystore and then finaly
compatible with Unifi, to import it into the Unifi keystore and then finaly
to restart the service.
to restart the service.
Note also that once the certificate is imported
into the keystore the individual certificate files are no longer
required. We could if we desired delete those files immediately. If we
do that then we should disable backup at the remote host (as there are
no files to backup -- they were erased during deployment). For example...
```
sh
export
ACME_DEPLOY_SSH_BACKUP
=
no
# modify the end of the remte command...
&&
rm
/var/lib/unifi/unifi.example.com.key
\
/var/lib/unifi/unifi.example.com.cer
\
/var/lib/unifi/unifi.example.com.p12
\
&&
service unifi restart
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment