简体   繁体   中英

Using C# to get a Remote Desktop certificate

I am not sure if this is the correct place to post this and if not please feel free to direct me.

I am looking to get the certificate expiration date of a terminal server. I can find it manualy here :

I would like to automate this proccess of finding the expiration date of the certificate preferably from outside of the server on my computer.

In some cases the TS would be a local IP and for other cases their is a url link to the remote desktop.

If it can only be done from within the server I can make that work.

Are there any suggestions as to where i can find some information to set this up?

Any help is much aprechiated, thanks.

You can overload using below link;

X509Store overload

Replace the remote server path: \YourRemoteServerName\My in the storeName parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM