Index: /trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 7341)
+++ /trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java	(revision 7342)
@@ -257,6 +257,7 @@
             String alias = en.nextElement();
             // Look for certificate to install
-            if (ks.isKeyEntry(alias) && ks.getCertificate(alias).equals(trustedCert.getTrustedCertificate())) {
+            if (ks.getCertificate(alias).equals(trustedCert.getTrustedCertificate())) {
                 // JOSM certificate found, return
+                Main.debug("JOSM certificate found: "+alias);
                 return;
             }
