I used to create self signed certificates using makecert like so
makecert.exe -iv fooCA.pvk -ic fooCA.cer -n "CN=Username" -pe -sv username.pvk -a sha1 -len 2048 -b 08/07/2014 -e 08/07/2024 -sky exchange username.cer -eku 126.96.36.199.188.8.131.52.2
Now using Windows 10 I can't use MakeCert anymore, I'm trying to use the New-SelfSignedCertificate script to achieve the same. Here's what I've tried so far.
New-SelfSignedCertificate -Subject "CN=Username" -KeyExportPolicy Exportable -Container "Username.pvk" -KeyAlgorithm sha1 -KeyLength 2048 -NotBefore 08/07/2014 -NotAfter 08/07/2024 -KeySpec KeyExchange -TextExtension @("184.108.40.206.220.127.116.11.2")
What parameters should I use to mirror the -iv and -ic from MakeCert?
I also suspect that my Subject is incorrect or that I need add an alternative subject in the TextExtension as I currently get a Missing Subject Information Error.