I'm following this tutorial to implement a licensing solution to my software.
At some point the tutorial ask to run a makecert command:
makecert -pe -ss My -sr CurrentUser -$ commercial -n "CN=<YourCertName>" -sky Signature
But at this time makecert became obsolete and all the solution I tried to make it work fails on my Windows 10 with Visual Studio 2017. No, the developer Command Prompt don't help. No, installing Windows SDK don't help.
The only serious solution seems to accept the obsolecense of makecert and use the Powershell New-SelfSignedCertificate command.
- I went on MakeCert documentation
- I went on New-SelfSignedCertificate documentation
And I could create this table:
But i'm not sure this is correct. Could you please help me to translate this MakeCert command to New-SelfSignedCertificate command.
Is this correct?
New-SelfSignedCertificate -KeyExportPolicy Exportable -CertStoreLocation "Cert:\CurrentUser\My" -Type Custom -Subject "CN=<YourCertName>" -KeySpec Signature