Signing vbs with military CAC

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 1
Last visit: Tue May 22, 2012 1:25 am

Signing vbs with military CAC

Post by rob31312 »

I am trying to use vbs to sign another vbs using my certificate stored on a CAC. Can this be done? I already use it to sign VBA through the VBA tools menu, but when I try to use a script to sign, I get an unknown error. I believe it cant read my CAC and prompt me for my PIN, and I cant export to a .pfx, only a .cer. If I cant do it via vbs, is there another way?