On Sun, 22 Nov 2026 14:03:12 GMT, Daisuke Yamazaki <[email protected]> wrote:
>> Please review this fix for SunMSCAPI storing and removing certs in >> `CURRENTUSER` even when a `LOCALMACHINE` keystore is selected. >> >> The native `storeCertificate` and `removeCertificate` methods currently use >> `CertOpenSystemStore`, which opens the `CURRENTUSER` store. >> This fix passes the store location through JNI and uses `CertOpenStore` with >> `CERT_SYSTEM_STORE_LOCAL_MACHINE` for `LOCALMACHINE` keystores. >> >> The manual regression test `LocalMachineStore` verifies certificate >> placement and deletion; the test requires administrator privileges. >> >> Testing: >> - `LocalMachineStore` >> - manual `keytool -genkeypair`, `-list` and `-delete` >> >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Daisuke Yamazaki has updated the pull request incrementally with one > additional commit since the last revision: > > Private key fix Another thing, you added the private key case in the test but I guess it should pass even without your latest src change. Is there a way to confirm the key is indeed created in the correct place? Java probably does not know about it, but I hope there should be a Windows tool/API can find it out. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33785#issuecomment-7087261772
