java - How to hide and use dialog boxes when using Microsoft Crypto API (Windows Certificate Store) -


i want leverage windows certificate store in java application. able load keystore windows-my has aliases/certs need, when loading faced dialog box asking "please insert smart card". if click cancel on few times, keystore still loads right content.

is there way suppress dialog box? there way use windows certificate selection box java? answer have seen on net this: https://social.msdn.microsoft.com/forums/en-us/52dca221-1e05-44c1-8c45-9e0d4a807853/java-keystoreload-for-windowsmy-pops-up-insert-smart-card-window?forum=windowssecurity, don't want have remove because don't expect users that.

here how loading keystore:

keystore ks = keystore.getinstance("windows-my"); ks.load(null, null); 

i never tried load certificase through keystore, supplied them means of system properties.

system.setproperty("javax.net.ssl.keystoretype", "windows-my"); system.setproperty("javax.net.ssl.keystore", "none"); system.setproperty("javax.net.ssl.truststoretype", "windows-root"); system.setproperty("javax.net.ssl.truststore", "none"); 

see java ssl , cert keystore , how use windows keystore (mcs) jdbc?


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -