RFR: JDK-8293808: mscapi destroyKeyContainer enhance KeyStoreException: Access is denied exception [v2]

Matthias Baesken mbaesken at openjdk.org
Fri Sep 16 13:28:42 UTC 2022


On Fri, 16 Sep 2022 07:43:00 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> Currently we see on various Windows machines the following exception :
>> https://bugs.openjdk.org/browse/JDK-8293097
>> 
>> java.security.KeyStoreException: Access is denied.
>> 
>> This should probably be enhanced a bit so that the exception tell us more about what went wrong exactly.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add errcode output to ThrowException

Thanks for the review !

> ...we may even be able to add more info in the exception message.

Unfortunately the "Access denied"  can show up also in other situations like missing permissions etc. of the user running the JDK so it is not completely clear what it means. Regarding "finding a Windows tool" showing the same issues, so far I am not aware of one unfortunately.

-------------

PR: https://git.openjdk.org/jdk/pull/10280



More information about the security-dev mailing list