Bug JDK-8153924 "MSCAPI provider does not create unique alias names" should be fixed in 8u92, but...

Ivan Gerasimov ivan.gerasimov at oracle.com
Tue May 10 08:23:48 UTC 2016


Hello Dirk!


On 10.05.2016 10:47, Henselin, Dirk (A-GDTO-B4) wrote:
> … I still get the same alias for all of my 3 certificates, even though 
> I use 8u92.

What is the build number of JDK in use?
Could you please provide the output of `java -version`?

If it's possible, could you also try the 8u102 early access release, and 
see if the issue is replicated?
It can be downloaded here:  https://jdk8.java.net/download.html

With kind regards,
Ivan

> Code:
> /KeyStore keyStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI");/
> /keyStore.load(null, null);/
> /System.out.println(keyStore.getProvider());/
> /List<String> keyStoreAliases = Collections.list(keyStore.aliases());/
> /for (String alias : keyStoreAliases) {/
> /System.out.println(alias + ";@" + System.identityHashCode(alias));/
> /}/
> Output:
> /SunMSCAPI version 1.8/
> /Henselin Dirk VWPKI B768543E5D512393;@14802193/
> /Henselin Dirk VWPKI B768543E5D512393;@564015/
> /Henselin Dirk VWPKI B768543E5D512393;@26856761/
> Thanks in advance!
> Mit freundlichen Grüßen / Kind regards
> *Dirk Henselin
> *Diplom-Mathematiker
> AutoVision GmbH
> Major-Hirst-Straße 11
> 38442 Wolfsburg
> _dirk.henselin at autovision-gmbh.com_ 
> <mailto:dirk.henselin at autovision-gmbh.com>
> _www.autovision-gmbh.com_ <http://www.autovision-gmbh.com/>
> Sitz der Gesellschaft: Wolfsburg
> Amtsgericht Braunschweig: HRB 100516
> Geschäftsführung: Martin Rosik (Vorsitzender), Jürgen Klöpffer
> *Ein Unternehmen im Volkswagen Konzern | A Volkswagen Group Company*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/security-dev/attachments/20160510/e2325a8d/attachment.htm>


More information about the security-dev mailing list