Hi all,
I have find two errors relative of the satosa keys import in run.sh script.
if [[ -v SATOSA_PRIVATE_KEY && -v SATOSA_PUBLIC_KEY ]]; then
echo $SATOSA_PRIVATE_KEYS > pki/privkey.pem
echo $SATOSA_PUBLIC_KEY > pki/cert.pem
echo "Satosa keys imported"
else
echo "satosa has loaded default keys"
fi
at first line is checked that the enviroments SATOSA_PRIVATE_KEY and SATOSA_PUBLIC_KEY are present but in second line is imported SATOSA_PRIVATE_KEYS, i think thath is a my old typo error.
when echo print an anviroment read the new line symbol as a space and this make not valid the certificate.
Fix
Make omogeneus the enviroments name ad insert the echo's enviroments in duble apex for respect the new lines
if [[ -v SATOSA_PRIVATE_KEY && -v SATOSA_PUBLIC_KEY ]]; then
echo "$SATOSA_PRIVATE_KEY" > pki/privkey.pem
echo "$SATOSA_PUBLIC_KEY" > pki/cert.pem
echo "Satosa keys imported"
else
echo "satosa has loaded default keys"
fi
Hi all, I have find two errors relative of the satosa keys import in run.sh script.
SATOSA_PRIVATE_KEY
andSATOSA_PUBLIC_KEY
are present but in second line is importedSATOSA_PRIVATE_KEYS
, i think thath is a my old typo error.echo
print an anviroment read the new line symbol as a space and this make not valid the certificate.Fix
Make omogeneus the enviroments name ad insert the echo's enviroments in duble apex for respect the new lines
I write a pull request for this errors