c# - Read Remote Machine Certificate -
we can use x509
store 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
Post a Comment