I have never done this before so I may be way off
base... If I am, please direct me :)
My understanding of the scripting.Signer sign method is
as follows:
----
Dim Signer, UnsignedText, SignedText, fso, SignedFile
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Signer = CreateObject("Scripting.Signer")
UnsignedText = InputBox("Enter the text of the code to be
signed.","Code Signer")
SignedText = Signer.Sign(".vbs",UnsignedText,"Code
Signature","Personal")
'Code Signature is the friendly name on my code signing
certificate.
Set SignedFile = fso.CreateTextFile
("C:\SignedCode.vbs",true)
SignedFile.WriteLine(SignedText)
SignedFile.Close
----
I keep getting an error on the InptBox line. I think it
has to do with accessing the certificate but none of the
documentation I have found on this object is very clear
as to how to access the certificate. It just says "a
string designating the name of the certificate store."
What method do I use to access the certificate or where
do I find the name of the certificate that was issued.
The friendly name is seeming not to be so...
Thanks for any assistance!