Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Signing scripts

Reply
 
Old 10-03-2007   #1 (permalink)
Hans Dingemans


 
 

Signing scripts

Using the script below (exact same command found in two books) results in an
error. Running this on a WXP SP2 box. Makecert.exe comes from the C:\Program
Files\Microsoft Visual Studio 8\SDK\v2.0\Bin directory.

Thanx for pointing me in the right direction...

Cheers,
Hans
-------------------------

C:\>makecert -n "CN=PowerShell Local Certificate root" -a sha1 -eku
1.3.6.1.5.5.
7.3.3 -r sv root.pvk root.cer -ss Root -sr localMachine

Error: Too many parameters
Usage: MakeCert [ basic|extended options] [outputCertificateFile]
Basic Options
-sk <keyName> Subject's key container name; To be created if not
present
-pe Mark generated private key as exportable
-ss <store> Subject's certificate store name that stores the output
certificate
-sr <location> Subject's certificate store location.
<CurrentUser|LocalMachine>. Default to
'CurrentUser'
-# <number> Serial Number from 1 to 2^31-1. Default to be unique
-$ <authority> The signing authority of the certificate
<individual|commercial>
-n <X509name> Certificate subject X500 name (eg: CN=Fred Dews)
-? Return a list of basic options
-! Return a list of extended options

C:\>



My System SpecsSystem Spec
Old 10-03-2007   #2 (permalink)
Hans Dingemans


 
 

Re: Signing scripts

The statement lacks a hyphen in front of the sv switch. The book (Windows
PowerShell TFM, page 44 was wrong).


"Hans Dingemans" <hans_dingemans@xxxxxx> wrote in message
news:%23ACZqCZBIHA.4712@xxxxxx
Quote:

> Using the script below (exact same command found in two books) results in
> an error. Running this on a WXP SP2 box. Makecert.exe comes from the
> C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin directory.
>
> Thanx for pointing me in the right direction...
>
> Cheers,
> Hans
> -------------------------
>
> C:\>makecert -n "CN=PowerShell Local Certificate root" -a sha1 -eku
> 1.3.6.1.5.5.
> 7.3.3 -r sv root.pvk root.cer -ss Root -sr localMachine
>
> Error: Too many parameters
> Usage: MakeCert [ basic|extended options] [outputCertificateFile]
> Basic Options
> -sk <keyName> Subject's key container name; To be created if not
> present
> -pe Mark generated private key as exportable
> -ss <store> Subject's certificate store name that stores the
> output
> certificate
> -sr <location> Subject's certificate store location.
> <CurrentUser|LocalMachine>. Default to
> 'CurrentUser'
> -# <number> Serial Number from 1 to 2^31-1. Default to be unique
> -$ <authority> The signing authority of the certificate
> <individual|commercial>
> -n <X509name> Certificate subject X500 name (eg: CN=Fred Dews)
> -? Return a list of basic options
> -! Return a list of extended options
>
> C:\>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
run .cmd scripts on remote machine (automating the MOSS install via scripts) PowerShell
AuthorizationManager Check Failed (signing scripts) PowerShell
Signing Scripts PowerShell
Signing Powershell Scripts with Microsoft Certificate Authority PowerShell
Signing PS Scripts and COM Object Failures PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46