I am trying to create SSL and getting following error: A parameter cannot be found that matches parameter name 'KeySpec'.
$cert = New-SelfSignedCertificate -CertStoreLocation "Cert:\LocalMachine\My" -DnsName "sampleapp.test.com" -KeySpec Signature -FriendlyName "saml app"
Any ideas how to fix it?