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@autovision-gmbh.com_
<mailto:dirk.hense...@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*