Sign in to follow this  
Followers 0
bitman

How To Hide A Certificate Installation

6 posts in this topic

hey I want to know how I can hide this proces

Run("rundll32.exe cryptext.dll,CryptExtAddPFX cert.p12")

@SW_HIDE does not work gives me following error

Unable to execute the external program.:

Run("rundll32.exe cryptext.dll,CryptExtAddPFX cert.p12",@SW_HIDE)

Share this post


Link to post
Share on other sites



Try:

$YourCommand = "rundll32.exe cryptext.dll,CryptExtAddPFX cert.p12"

RunWait(@ComSpec & " /c " & $YourCommand, "", @SW_HIDE)


My little company: Evotec (PL version: Evotec)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi,

maybe this helps .

Run("rundll32.exe cryptext.dll,CryptExtAddPFX cert.p12", "", @SW_HIDE)

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Try:

$YourCommand = "rundll32.exe cryptext.dll,CryptExtAddPFX cert.p12"

RunWait(@ComSpec & " /c " & $YourCommand, "", @SW_HIDE)

it seems like it is working for the first window but the next window is not hidden. How can I hide each of the windows in the installation. can I simply use RunWait("",@SW_HIDE)?

Share this post


Link to post
Share on other sites

This works fine for me:

$strCertificate = "c:\certificates\cert.p12"
Run("c:\windows\system32\rundll32.exe cryptext.dll,CryptExtAddPFX " & $strCertificaat, "", @SW_HIDE)

You originally forgot the second parameter, the empty one ("").

Share this post


Link to post
Share on other sites

Is there a way to tell the commanline to install the .p12 certificate under as a private computercertificate (MMC)?

I also need to send a unique password to each certificate.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0