Previously I wrote about the code-signing certificate in PowerShell. If you want to share your codes or if you want to backup your certificate, you can take next steps:
Windows Start button
Run the mmc.exe command
File -> Add / remove snap-in (CTRL+M)
Add the Certificates snap-in
Select my user account
Click OK
Double click Certificates - Current user
From the Current User certificate store, go to the Trusted Root Certification Authorities container and locate the PowerShell Local Certificate Root certificate. Right-click on it and click All Tasks, Export
Leave the format at the default DER and click Next
Enter your desired path and name of the exported certificate, and click Next
Click Finish and close out the wizard
Login on the target machine as the user under which scripts will be running. Open MMC and add the Certificates snap-in for the current user, locating the Trusted Root Certification Authorities container
Expand the container to find the Certificates store. Right-click on it and select All Tasks, Import.
Click Next
Locate the certificate you exported earlier and click Next
Leave the next step at its default and click Next
Your signed script should now run on the new computer. Note that Powershell will prompt you the first time it’s run unless you also import the Trusted Publishers certificate.
It's a very useful information and it will useful in future..Thanks for share with us..
Posted by: Code Signing Certificate | October 19, 2010 at 07:05 PM
Thanks for the info, this was really helpful.
Posted by: Wildcard SSL | July 25, 2011 at 01:20 PM