I am trying to make a very simple script in powershell to create a Certificate using makecert.exe tool (I know powershell already has its own certificate creation method but I would like to use makecert).
I would like to reproduce this command:
makecert.exe -sk server -sky exchange -pe -n CN=<machineName> -ir LocalMachine -is Root -ic MyCA.cer -sr LocalMachine -ss My <certificate path>
How is it possible in powershell?