I am well aware of certutil -encode
, however in my use case I do not want the end user to see a console window open.
Asked
Active
Viewed 219 times
-3

TheDude53
- 27
- 1
- 4
-
This is a programming site. Why don't you try reading the spec and writing code. See RFC4648 https://tools.ietf.org/html/rfc4648 – Feb 13 '20 at 05:23
1 Answers
0
You can use vbs to hide the console for the certutil command. create a .vbs
extention file with something like:
Set MyScript = CreateObject("WScript.Shell")
MyScript.Run "cmd /c certutil OPTIONS -encode Infile Outfile", 0, False
Run it as cscript filename.vbs
Alternatively if you have the certutil commands in a batch file, call the batch file instead.
Set MyScript = CreateObject("WScript.Shell")
MyScript.Run "C:\somedir\batchfile.cmd", 0, False

Gerhard
- 22,678
- 7
- 27
- 43