Windows security dialog to select certificate in java

I need to select one certificate from the Windows repository from my desktop program java. The code:

KeyStore ks = KeyStore.getInstance("Windows-MY");
...

Is javathere something "ready to use" like this Win dialog?Select cert

I worked with C #, and there are:

X509Certificate2Collection sel = X509Certificate2UI.SelectFromCollection(certificates, null, null, X509SelectionFlag.SingleSelection);

Is there an javaequivalent for this, or do I need to create my own dialogfrom the certArray key store?

+4
source share
1 answer

, ( ​​). , , , , , , . , , , .

github, ( - ) , , , :)

Java Native Access library Crypt32 API, Windows, CryptUI. CryptUI , . Crypt32 ( Windows-MY, ). / ( ), .

, , CERT_CONTEXT ( C) java java.security.cert.X509Certificate, .

, , , , // :)

+1

Source: https://habr.com/ru/post/1536568/


All Articles