Solved

cert import script, batch file, ca , pfx

Posted on 2014-03-19
4
904 Views
Last Modified: 2014-03-20
Hi experts..

 i have batch file for importing the pfx cert from local drive to the IE personal store.
i notice that the script is importing with Export key enabled, but i want to disable export key during the cert import.
can you please help...

Regards,
SK
0
Comment
Question by:Skumar_CCSA
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:becraig
ID: 39941564
If you are using certutil for import update your command to reflect

certutil -user -importpfx my cert.pfx NoExport
0
 

Author Comment

by:Skumar_CCSA
ID: 39941572
for /F "delims=" %%f in (c:\scripts\logs\cert_name.log) do certutil -f -user -p "cat!" -importpfx c:\cert\pfx\%%f  >>>>%logpath% 2>&1
:end

I use the above command....
can you pls help me where to put no export ?
0
 
LVL 28

Accepted Solution

by:
becraig earned 500 total points
ID: 39941620
for /F "delims=" %%f in (c:\scripts\logs\cert_name.log) do certutil -f -user -p "cat!" -importpfx c:\cert\pfx\%%f NoExport >>>>%logpath% 2>&1
:end
0
 

Author Closing Comment

by:Skumar_CCSA
ID: 39944505
thank you so much...
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now