1

I'm trying to create a self-signed certificate using power shell. I have tried using import-module PKI but seems like it's supported on powershell v3.0 onward .Is any other way I could create a self-signed certificate using powershell v2.0?

  • 2
    Is there any specific reason to stick with PowerShell 2.0? – Crypt32 Sep 18 '16 at 5:40
0

you could download the Windows SDK and use MakeCert

  • Please, read the page header in the referenced link. Makecert.exe is deprecated. – Crypt32 Sep 17 '16 at 19:25
  • since he using Windows 2008 and powershell 2, makecert will work just fine. @CryptoGuy. – Mass Nerder Sep 17 '16 at 21:16
  • This one would be better: gallery.technet.microsoft.com/scriptcenter/…. Makecert.exe was deprecated due to extremely weak and outdated cryptography. It was the solution in pre-Vista era, but things changed in Vista/2008 when they got completely new cryptography subsystem. – Crypt32 Sep 18 '16 at 5:35
-1

Have you tried this?

New-SelfSignedCertificate -DnsName 'www.fabrikam.com', 'www.contoso.com' -CertStoreLocation 'cert:\LocalMachine\My'
  • 1
    New-SelfSignedCertificate this command works on powershell v3.0 onward. – Abhaya Ghatkar Aug 10 '16 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.