I'm developing an ASP.NET MVC5 project to demonstrate electronic invoices.
During the process of searching for notes, manifestation or download, I access the webservice of the Internal Revenue Service and I need to send the digital certificate regarding the CNPJ.
Everything works fine while I'm developing and testing things locally, but when the application is published and goes to the server I can no longer select the digital certificate I want to use.
I'm using the X509Certificate2 , X509Store and X509Certificate2Collection
I would like to do something like this link: link
When I click on the image of the digital certificate, the Store containing the certificates is opened, but I can only do this when I start the local application. After I go to the server, I can not access the Store.
Has anyone ever worked with this or know how to solve the problem?