mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix 'unable to write random state in SSL init (same patch as for yunohost-admin)
This commit is contained in:
parent
5e1377aec1
commit
b9197b6269
1 changed files with 3 additions and 1 deletions
|
@ -23,8 +23,10 @@ do_init_regen() {
|
|||
mkdir -p "${ssl_dir}/"{ca,certs,crl,newcerts}
|
||||
|
||||
# initialize some files
|
||||
# N.B. : the weird RANDFILE thing comes from:
|
||||
# https://stackoverflow.com/questions/94445/using-openssl-what-does-unable-to-write-random-state-mean
|
||||
[[ -f "${ssl_dir}/serial" ]] \
|
||||
|| openssl rand -hex 19 > "${ssl_dir}/serial"
|
||||
|| RANDFILE=.rnd openssl rand -hex 19 > "${ssl_dir}/serial"
|
||||
[[ -f "${ssl_dir}/index.txt" ]] \
|
||||
|| touch "${ssl_dir}/index.txt"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue