Using smart card credentials obtained on a web page

I have two servers in a Windows domain that include an active directory that is configured correctly to allow users to log in using smart card credentials. Currently, I can log into server 1 and run remote PowerShell commands on server2 using smart card credentials via WinRM, without any problems.

I would like to create some kind of web service (preferably on node.js) on server1 so that it presents the user with a web page requesting the credentials of a smart card. Using these credentials, server1 will be able to run remote PowerShell commands on server2.

Is it possible? I saw some links to pcsclite to other posts. It's all I need? If so, can anyone provide snip-it code of what can do this?

Maybe a simpler question that can help me get started is, could I use these credentials to connect to a file resource on server2 and upload the file?

Thank!

+4
source share
1 answer

Look int using WAP in IIS to configure the gateway and use Active Directory Client Certificate Mapping

0
source

Source: https://habr.com/ru/post/1680433/


All Articles