lib: Implement flock on key file before opening/using
flock (file lock) on the key file and hold it exlusively while doing:
- Creating key
- Creating CSR file
With the main focus to prevent concurrent access to the key or CSR files.
flock (file lock) on the key file and hold it exlusively while doing:
With the main focus to prevent concurrent access to the key or CSR files.