I am opening an encryption key stored in an HSM. I have the HSM's client library installed on my machine. If I run the following Windows Powershell snippet: ##Open an existing Key $keyName = 'foo' $providername = 'SafeNetProtectApp Key Storage Provider' $provider = New-Object 'System.Security.Cryptography.CngProvider' -ArgumentList $providername $key = [System.Security.Cryptography.CngKey]::Open($keyName, [...] read more