0
New-SelfSignedCertificate -ExistingKey "c:\cts_privkey.pem" -Container localhost -Provider "Microsoft Enhanced RSA and AES cryptographic Provider" -DnsName "example.com" -CertStoreLocation "cert:\LocalMachine\My"

I get the error: enter image description here

I think I am using the commandlet incorrectly

tks.tman
  • 101
  • 2
  • 1
    `-ExistingKey` clearly does not take any parameter, https://docs.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps. But in short, it is rarely useful to use a single private key to generate self-signed certificates. – Lex Li Sep 13 '22 at 04:06

0 Answers0