4e520f9c0c930ba4c5fa39ccdea99d04a836dc29
Wrap the WriteAllBytes/Move/HardenPermissions sequence in a try/catch so that any failure best-effort deletes the hardened .tmp file (which may already hold PFX/private-key bytes) before rethrowing. Add a test that induces a persist failure by pointing SelfSignedCertPath inside a regular file and asserts no .tmp is left on disk.
Description
No description provided
Languages
Java
49.4%
C#
39.3%
Rust
3%
Python
2.9%
Go
2.3%
Other
3.1%