I have a startup task in a .cmd file that looks like this:
certutil.exe -addstore -f "TRUSTEDPEOPLE" "mysslcert.cer"
My .csdef file looks like this:
<Startup> <Task commandLine="Startup\InstallVcRedist.cmd" executionContext="elevated" taskType="simple" />
<Task commandLine="Startup\AddUrlAcl.cmd" executionContext="elevated" taskType="simple" />
<Task commandLine="Startup\InstallCert.cmd" executionContext="elevated" taskType="simple" />
</Startup>
I am installing VC++, setting up a URLAcl and then trying to install this cert in a store.
What happens is that the role just sits there spinning in the Azure portal. I can remote into the instance and actually run this cmd file with no errors and it works.
I'm not sure why certutil can't run without me remoting into the machine. Any ideas?
Thanks!
STom