smeserver-radiusd/root/sbin/e-smith/systemd/radiusd-configure
Jean-Philippe Pialasse 3625ba86fb * Mon Apr 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
- rewrite radiusd-configure [SME: 12624]
- move forgotten templates [SME: 12623]
2024-04-15 13:24:10 -04:00

11 lines
313 B
Bash

#!/bin/sh
# Ensure that PRNG is adequately seeded.
[ -s /etc/raddb/certs/dh ] ||\
/usr/bin/envuidgid stunnel \
/usr/bin/openssl dhparam -out /etc/raddb/certs/dh 2048
[ -s /etc/raddb/certs/random ] ||\
/usr/bin/envuidgid stunnel \
/bin/dd if=/dev/urandom of=/etc/raddb/certs/random bs=1k count=1