Category Archives: Infrastructure

How to issue a self-signed certificate

To have a properly working SSL web site you have to assign a SSL certificate to it. A real one costs real money. Easily especially for development to issue a self-signed one. To create certificates I will use MakeCert.exe that … Continue reading

Posted in Infrastructure | Tagged | Leave a comment

How to start and stop windows service using single batch file

echo off set service=MyService for /f “tokens=3” %%a in (‘sc query “%service%” ^| find “STATE”‘) do ( if %%a==4 goto running goto stopped ) :stopped sc start %service% goto :eof :running goto :eof

Posted in Infrastructure | Leave a comment