Comment 5 for bug 250400

Revision history for this message
stiV (stefan-wehinger) wrote : Re: package ssl-cert 1.0.14-0ubuntu2.1 failed to install/upgrade:

well ... i am sorry - it seems i have made an error here. I don't know exactly what i did wrong but i retested everything and fixing the path is not enough.

the real problem is the ssleay.cnf that is being used to generate the standard pem file
it sets the RANDFILE variable to $ENV::HOME/.rnd

if the script is used via cron or anyother script that is being started automatically the user may still be "root", but the homedir is not set (i don't think that THIS is an error) and the creation of the file fails. If executed in a shell it works. changing the RANDFILE to /tmp/.rnd does the trick. i don't see the point why this file needs to be in the homedir of the user that installs the package or uses make-ssl-cert. isn't /tmp good enough?

[this needs reopening]