RFR: JDK-6782021: It is not possible to read local computer certificates with the SunMSCAPI provider [v5]
Mat Carter
duke at openjdk.java.net
Tue May 10 23:21:48 UTC 2022
On Tue, 10 May 2022 22:01:16 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> Mat Carter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add test from wangweij
>
> test/jdk/sun/security/mscapi/AllTypes.java line 60:
>
>> 58: return true;
>> 59: } catch (IOException ioe) {
>> 60: if (ioe.getMessage().trim().endsWith("java.security.KeyStoreException: Access is denied.")) {
>
> Could the message be different if the system language is not English?
I checked the API and its not guaranteed to be English. I'm investigating a better method for detecting admin rights
-------------
PR: https://git.openjdk.java.net/jdk/pull/8211
More information about the security-dev
mailing list