Click here to Skip to main content
12,623,511 members (30,030 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked

How to run Makecert without password window?

, 13 Nov 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
How to run makecert only in command string mode?
When you run the makecert.exe to create a certificate, usually you get a GUI that asks you to enter the password. This is ok, when you run the tool manually, but not when you want to automatize the process of the certificate creation. For this goal, you can create a JavaScript file and copy the code below. It waits for the window, enters the password and repeats it for the private certificate. Then it closes itself. If the timeout expires, it closes the application after a while.

File MakeCertNoGUI.js:

var programArgs = WScript.Arguments;
var defaultPassword = "P@$$w0rd";
var maxItirations = 500;
if ( programArgs.Count() > 0 ) {
     defaultPassword = programArgs(0);
var shell = WScript.CreateObject("WScript.Shell");
var passIsEntered = false;
var timeOut = 0;
while (!passIsEntered && timeOut < maxItirations)
	var isActivated = shell.AppActivate("Create Private Key Password");
	WScript.Sleep( 500 );
	if (isActivated)
		shell.SendKeys( defaultPassword );
		WScript.Sleep( 300 );
		shell.SendKeys( "{TAB}" );
		WScript.Sleep( 300 );
		shell.SendKeys( defaultPassword );
		WScript.Sleep( 300 );
		shell.SendKeys( "{TAB}" );
		WScript.Sleep( 300 );
		shell.SendKeys( "{ENTER}" );
		WScript.Sleep( 500 );
		// Enter Private key Pass
		shell.SendKeys( defaultPassword );
		WScript.Sleep( 300 );
		shell.SendKeys( "{ENTER}" );
		WScript.Sleep( 500 );
		passIsEntered = true;
	WScript.Sleep( 500 );
	timeOut ++;
WScript.Sleep( 1000 );


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Germany Germany
• Specialist with diverse experience in software development, software architecture and medical signal processing.

• Demonstrated leadership and project coordination in a complex environment

• Enjoyed working in team especially with global / international team members

Mai 2006 CareFusion Germany GmbH 234 Wuerzburg, Germany
(present) Software Architect

• Software Architect (January 2008– present)

Developed project management skills, X-functional leadership, business analysis and planning skills by leading the key portfolio projects: Cardio ECG mobile devices, Holter devices with connection and data transfer to the company Back-End.

Architecture: Multiple responsibility in developing concept, use cases, rough and fine architecture, developing strategy/tactics in solving the technical problems, writing complicated code segments and coaching the development team. User interface design strategy and its implementation.
Project Management: Drove development of vision and strategy aimed at finishing the projects in time and at fulfilling all requirements, business planning and market deployment strategy development.
People Management: worked cross-functionally within the organization, managed vendors and groups involved, developed effective communications to IT team and Product Management to ensure successful execution of tactical plans, developed and conducted product training for the end-users.

• Software lead developer (February 2007 – January 2008)

Successful launch of new software complex – Overread Platform. Worked with team in developing of concept, test plans, software, and publishing. Gathered knowledge and experience in project management and software developing frameworks: MSF, CMMI, V-model, Waterfall and others...

You may also be interested in...


Comments and Discussions

QuestionHow to run Makecert without password window? Pin
Betim Prevalla28-May-13 5:05
memberBetim Prevalla28-May-13 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161128.1 | Last Updated 13 Nov 2010
Article Copyright 2010 by Andrianov
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid