I have generated a self-signed certificate and installed it to Root and My in the local machine. When I view the General tab of the certificate dialog in windows it says the certificate is intended for the following purposes:
All issuance policies
All application policies
Yet when I try to sign it with Set-AuthenticodeSignature I get the error:
Set-AuthenticodeSignature : Cannot sign code. The specified certificate is not suitable for code signing.
Doesn't 'All issuance policies' and 'All application policies' include code signing? What am I missing here?