Is it possible to generate a new self-signed certificate from an existing private key with powershell?

Viewed 33

I tried:

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

enter image description here

I don't think I am using the command correctly. Can this eve

0 Answers
Related