Mailing List ecs-isp@2rosenthals.com Archived Message #836 | tilbake listen |
|
---|
In <list-10601924@2rosenthals.com>, on 08/16/24
at 07:28 AM, "Paul Smedley" <ecs-isp@2rosenthals.com> said:
Hi,
It's going to be an edge case for cp.exe not to exist on a system thatcreate a new-crt.pem and new-key.pemOK... there is no copy() function in klibc - so I guess I'll find an
hardlink the existing key.pem to timestamped-key.pem
hardlink the existing crt.pem to timestamped-crt.pem
unlink key.pem
unlink crt.pem
rename new-crt.pem to crt.pem
rename new-key.pem to key.pem
implementation, the alternate option being to rely on the user having
cp.exe available in path and calling that.
would need to use uacme.exe. The system() call would fail so the
condiition would not go unnoticed.
You could also do
create a new-crt.pem and new-key.pem
rename existing key.pem to timestamped-key.pem
rename existing crt.pem to timestamped-crt.pem
rename new-crt.pem to crt.pem
rename new-key.pem to key.pem
It's not quite as safe as the method the developers chose, but the
difference is negligible, IMO
Abboner: Feed,
Digest,
Index. Stopp abbonement E-post til ListMaster |