Problem:
- debian/patches/openssl-not-certtool.patch adds "RANDFILE = $ENV::HOME/.rnd\n"
- this is not picked up correctly at the time this file is evaluated
- Due to that swtpm-localca tries to access $CWD/.rnd and fails in most cases
- The upstreaming of this Delta has further open questions at [1]
Solution:
- We could brute force:
"RANDFILE = /var/lib/swtpm/.rnd\n"
But that is wrong if swtpm-localca is executed by another
user that might fail just as much.
- We need to find either a working pick up of $HOME or something completely else ...
Maybe we can make samples/swtpm_localca.c read ENV[HOME] and write the config
accordingly
A new interim summary
Problem: patches/ openssl- not-certtool. patch adds "RANDFILE = $ENV::HOME/.rnd\n"
- debian/
- this is not picked up correctly at the time this file is evaluated
- Due to that swtpm-localca tries to access $CWD/.rnd and fails in most cases
- The upstreaming of this Delta has further open questions at [1]
Solution: swtpm/. rnd\n" swtpm_localca. c read ENV[HOME] and write the config
- We could brute force:
"RANDFILE = /var/lib/
But that is wrong if swtpm-localca is executed by another
user that might fail just as much.
- We need to find either a working pick up of $HOME or something completely else ...
Maybe we can make samples/
accordingly
[1]: https:/ /github. com/stefanberge r/swtpm/ pull/620