.
, Windows, , . ( -, Yubikey, - OS ).
, , , .
, -, .
PowerShell :
Set-Location "cert:\Path\To\Your\Certificate"
$cert=Get-Item ".\(your-certificate-thumbprint)"
CSP, ( -, CSP )
$cert=Get-Item .\(ThumbprintOfYourKey)
$cert.PrivateKey.CspKeyContainerInfo | fl *
- :
MachineKeyStore : False
ProviderName : Microsoft Base Smart Card Crypto Provider
ProviderType : 1
KeyContainerName : c0f031c2-0b5e-171b-d552-fab7345fc10a
UniqueKeyContainerName : c0f031c2-0b5e-171b-d552-fab7345fc10a
KeyNumber : Signature
Exportable : False
HardwareDevice : True
Removable : True
Accessible : True
Protected : True
CryptoKeySecurity : System.Security.AccessControl.CryptoKeySecurity
RandomlyGenerated : False
, Yubikey, CSP "Microsoft Base Smart Card Crypto Provider". , , , :
sn.exe -c "Microsoft Base Smart Card Crypto Provider"
- , ( , , , ).
: sn.exe, , ( "" ), -, sn.exe -Rc "your-container-name" "key.snk" : AssemblyKeyNameAttribute AssemblyInfo.cs :
[assembly: AssemblyKeyNameAttribute("Your Key Container Name")]
. , , CSP sn.exe -c, , " " ( ).