Lets say I create a self-signed certificate in Powershell like this:
New-SelfSignedCertificate -Provider "Microsoft Platform Crypto Provider" -Subject "CN=foobar" -KeyExportPolicy NonExportable -KeyAlgorithm RSA -KeyLength 2048 -CertStoreLocation "Cert:\CurrentUser\My" -NotAfter $((Get-Date).AddYears(10))
The intended use of the certificate is code-signing of powershell scripts.
Because of the fact that the Provider is MS platform crypto provider
the keys will be generated by the Trusted Platform Module (TPM) Chip embedded in my motherboard.
The private key is thus now stored in the "black-box" TPM. So is there any need to wrap / password-protect the private key?