Hello I am newbie of golang, I am creating a site with golang restful and angularJS.
>From ASP WebForm, I can allow user choose certificate in this code: namespace WebX509Certificate2 { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { X509Certificate2 m_certificate; m_certificate = GetCertificate(); } protected X509Certificate2 GetCertificate() { var certificate = new X509Certificate2(Request.ClientCertificate.Certificate); var store = new X509Store("My", StoreLocation.CurrentUser); store.Open(OpenFlags.ReadOnly); var certificates = new X509Certificate2Collection(store.Certificates); store.Close(); var title = "Certificate Store"; var message = "Please select Certificates (Applied for Online Application)"; X509SelectionFlag selectionFlag; X509Certificate2Collection certificatesSelected; try { certificatesSelected = X509Certificate2UI.SelectFromCollection(certificates, title, message, X509SelectionFlag.SingleSelection); if (certificatesSelected.Count == 0) return null; else { certificate = certificatesSelected[0]; return certificate; } } catch (Exception ex) { throw ex; } } } } How can I do it in golang ? Thank in advance Tuan Hoang Anh -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.