Jump to content

Signing powershell scripts so they're trusted domain-wide


Recommended Posts

Posted

So I've gotten to the point now where I'm writing scripts that's going beyond personal use and I'm not really keen on modifying the executionpolicy of other users/machines, so script signing is the way to go, but I'm having a lot of trouble finding anything beyond self-cert (MakeCert) for local use, which isn't really going to be much use as we'll need multiple members of staff to be able to execute it.

 

I understand a certificate can be made and pushed out domain-wide but really not finding much information on how to actually make a certificate for the domain, only for local machines. Has anybody done something like this on their own networks that would be able to throw a link or two my way explaining it more?

Posted

Thanks for the speedy response!

 

Is that the only way to do it? We don't have a PKI. Apparently we used to have one as part of SCCM but CAPITA bodged it up so now we don't.

If it is, how simple is it to set one up? (I don't really touch servers too much, but I can pass everything on once I've got the resources)

Posted

It's not too shocking, But takes a bit of thinking before jumping in. It also means you can generate internal certs for internal web servers, etc. Which can provide a cost/security benefit down the line.

 

but if you can throw some money at it, it mgiht be better to buy a code signing cert from someone who's a trusted root in windows by default (MS update the root certs trusted auth parties fairly often)

 

If you go start-run-mmc then go file-add snap in. choose certificates, computer account, local computer. You can then open trusted root certification authorities and see a list of certificate signers your machine trusts (and likely the same as the other machines on the network) - I believe thwate, verisign and globalsign are normally good bets: https://www.globalsign.co.uk/code-signing/

Posted
I can't even figure out how to self-sign them :( All I find is talk of MakeCert being bundled with .NET Framework SDK 2.0, but there seems to be no such program bundled in with .NET Framework SDK 4 that I just installed.
Posted (edited)
All I find is talk of MakeCert being bundled with .NET Framework SDK 2.0, but there seems to be no such program bundled in with .NET Framework SDK 4 that I just installed.

MakeCert.exe is bundled with the Windows SDK and Windows Driver Kit (WDK).

 

You will find it in the following folders depending upon which *DK you install.

 

%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin

C:\WinDDK\7600.16385.1\bin\amd64

Edited by Arthur

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...