Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
miriel
le-openfire
Commits
0eaf693f
Commit
0eaf693f
authored
May 24, 2020
by
miriel
Browse files
Otra versión de instalar certificado LE en openfire.
parent
227e50f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
update_certificate_other.sh
update_certificate_other.sh
+27
-0
No files found.
update_certificate_other.sh
0 → 100644
View file @
0eaf693f
#!/bin/bash
cd
/etc/ssl
P12
=
$(
mktemp
-q
/tmp/server.XXXXXX
)
ALIAS
=
"jabber.vc.hidro.cu"
export
PASS
=
changeit
KNEW
=
/usr/share/openfire/resources/security/keystore.new
KOLD
=
/usr/share/openfire/resources/security/keystore
FULL
=
/etc/ssl/
${
ALIAS
}
_fullchain.pem
PRIV
=
/etc/ssl/
${
ALIAS
}
_key.pem
echo
"Deteniendo el servicio de OpenFire"
/bin/systemctl stop openfire
openssl pkcs12
-export
-password
env
:PASS
-in
${
FULL
}
-inkey
${
PRIV
}
-out
${
P12
}
-name
${
ALIAS
}
keytool
-importkeystore
-deststorepass
${
PASS
}
-destkeypass
$PASS
-destkeystore
$KNEW
-srckeystore
$P12
-srcstoretype
PKCS12
-srcstorepass
$PASS
-alias
$ALIAS
rm
-f
${
P12
}
mv
$KOLD
${
KOLD
}
.bak_
$(
date
+%Y-%m-%d
)
mv
$KNEW
$KOLD
echo
"Arrancando el servicio de OpenFire"
/bin/systemctl start openfire
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