ordex wrote
ePluribusUnum wrote
the easier cross platform solution is just to have an option to call a script that returns the CRL list
The script will have to read the list from somewhere else, no? How do you atomically update this "somewhere else"? IMHO you are just moving the problem.
This said, renaming a temporary file seems the most reasonable approach to me
The something else is a transactional database, so yes I can update it atomically using the SQL "START TRANSACTION" semantics.
The filesystem is surprisingly complicated, which means increased attack surface. The nuances and caveats vary OS to OS, version to version. Assuming a read-only hard drive mount (eg. an embedded IOT application), it requires mounting an entire tmpfs filesystem just for this one little thing. I'm not even sure how that's done on Windows. It might be okay for a prototype, but isn't great for production.