The PowerShell command below creates a self-signed certificate with SHA1 as signature algorithm.
New-SelfSignedCertificate -DnsName "MyCertificate", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" -Provider "Microsoft Strong Cryptographic Provider"
Is there any value that I can pass to this command (for example: -KeyAlgorithm
) to make the certificate generated using SHA256 as signature algorithm?