2023-07-12 10:08:31 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Ensure that PRNG is adequately seeded.
|
|
|
|
[ -s /etc/raddb/certs/dh ] ||\
|
2024-04-15 19:24:10 +02:00
|
|
|
/usr/bin/envuidgid stunnel \
|
|
|
|
/usr/bin/openssl dhparam -out /etc/raddb/certs/dh 2048
|
2023-07-12 10:08:31 +02:00
|
|
|
[ -s /etc/raddb/certs/random ] ||\
|
2024-04-15 19:24:10 +02:00
|
|
|
/usr/bin/envuidgid stunnel \
|
2023-07-12 10:08:31 +02:00
|
|
|
/bin/dd if=/dev/urandom of=/etc/raddb/certs/random bs=1k count=1
|
|
|
|
|