[9] RFR: 8176183: sun/security/mscapi/SignedObjectChain.java fails on Windows

Artem Smotrakov artem.smotrakov at oracle.com
Wed Mar 8 21:52:05 UTC 2017


Hello,

The test fails with "Key type not supported" error on Windows only with 
SunMSCAPI provider. It happens because the test passes an incompatible 
key object to Signature instance. Please see more details in

https://bugs.openjdk.java.net/browse/JDK-8176183?focusedCommentId=14058876&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14058876

The following patch updates Chain.java (which is used by 
SignedObjectChain.java) to use specified security provider for both key 
generation and singing.

I ran all tests which depend on Chain.java on all generic platforms, 
they worked fine.

Bug: https://bugs.openjdk.java.net/browse/JDK-8176183

Webrev: http://cr.openjdk.java.net/~asmotrak/8176183/webrev.00/

Artem




More information about the security-dev mailing list