RFR: JDK-6782021: It is not possible to read local computer certificates with the SunMSCAPI provider [v5]
Mat Carter
duke at openjdk.java.net
Wed May 11 16:01:40 UTC 2022
On Tue, 10 May 2022 23:17:54 GMT, Mat Carter <duke at openjdk.java.net> wrote:
>> 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
Updated admin privilege test to more reliable method that does not rely on string parsing and thus not susceptible to locale issues
-------------
PR: https://git.openjdk.java.net/jdk/pull/8211
More information about the security-dev
mailing list