Last active
September 27, 2017 00:54
-
-
Save AlbertoMonteiro/181429137fb475503e873a907c23ebba to your computer and use it in GitHub Desktop.
Selecionar somente certificados com intuito de realizar assinatura digital
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var store = new X509Store("MY"); | |
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly); | |
var collection2 = store.Certificates.Find(X509FindType.FindByKeyUsage, X509KeyUsageFlags.DigitalSignature, false); | |
var scollection = X509Certificate2UI.SelectFromCollection(collection2, "Certificado(s) Digital(is) disponível(is)", "Selecione o certificado digital para uso no aplicativo", X509SelectionFlag.SingleSelection); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment