4 ms·
That would work for one file but there's no way to atomically rename two.
by spatz 8y ago
That would work for one file but there's no way to atomically rename two.
- regecks 8y agoI suppose you could do it if you placed them in a directory, and renamed that. But I don't think that's what Certbot does, I think it works by changing file symlinks individually.
- tinus_hn 8y agoThe actual problem is the other way around: you can’t open two files atomically.
- rubatuga 8y agoYou should only need to update the certificate not the private key
- scurvy 8y agoThere's a format that stores key and cert in the same file. Name escapes me now and I'm not sure if nginx supports it. Edit: it does. Just use that instead of messing with separate files