c# - Read Remote Machine Certificate -


we can use x509store load store , find certificates in local machine how same certificate sitting on remote server?

i know can configure network account have permissions on certificate in remote machine how use network account read certificate details?

x509store store = new x509store(storename.my, storelocation.localmachine); store.open(openflags.readonly); x509certificate2collection results = store.certificates.find(x509findtype.findbysubjectname, "certname", false); 

you can use x509store overload: https://msdn.microsoft.com/en-us/library/f07btzah(v=vs.110).aspx

where can specify remote server path: \\remoteservername\my in storename parameter.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -