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?
Asked
Active
Viewed 1.0k times
0

Abhaya Ghatkar
- 109
- 1
- 1
- 4
-
2Is there any specific reason to stick with PowerShell 2.0? – Crypt32 Sep 18 '16 at 05:40
2 Answers
1
you could download the Windows SDK and use MakeCert

Mass Nerder
- 1,007
- 5
- 6
-
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: https://gallery.technet.microsoft.com/scriptcenter/Self-signed-certificate-5920a7c6. 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 05:35
-1
Have you tried this?
New-SelfSignedCertificate -DnsName 'www.fabrikam.com', 'www.contoso.com' -CertStoreLocation 'cert:\LocalMachine\My'

hdhruna
- 101
- 1
-
2`New-SelfSignedCertificate` this command works on powershell v3.0 onward. – Abhaya Ghatkar Aug 10 '16 at 10:54