mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 15:13:14 +02:00
Add a warning to ./unrealircd spkifp about it using the default certificate
locations, and inform the user that they can specify a file. This doesn't solve https://bugs.unrealircd.org/view.php?id=6021 completely but at least makes the user aware of this. Reported by arcanefeenix and crazycat.
This commit is contained in:
@@ -227,9 +227,15 @@ elif [ "$1" = "spki" -o "$1" = "spkifp" ] ; then
|
||||
CERT="@CONFDIR@/tls/server.cert.pem"
|
||||
if [ "$2" != "" ]; then
|
||||
CERT="$2"
|
||||
else
|
||||
echo "NOTE: This script uses the default certificate location (any set::tls settings"
|
||||
echo "are ignored). If this is not what you want then specify a certificate"
|
||||
echo "explicitly like this: ./unrealircd spkifp conf/tls/example.pem"
|
||||
echo ""
|
||||
fi
|
||||
if [ ! -f "$CERT" ]; then
|
||||
echo "Could not open certificate: $CERT"
|
||||
echo "You can specify a certificate like this: ./unrealircd spkifp conf/tls/example.pem"
|
||||
exit 1
|
||||
fi
|
||||
openssl x509 -noout -in "$CERT" -pubkey | openssl asn1parse -noout -inform pem -out @TMPDIR@/tmp.public.key
|
||||
|
||||
Reference in New Issue
Block a user