Solved

cert import script, batch file, ca , pfx

Posted on 2014-03-19
4
967 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 29

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 29

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

856 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