Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1121
  • Last Modified:

cert import script, batch file, ca , pfx

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
Skumar_CCSA
Asked:
Skumar_CCSA
  • 2
  • 2
1 Solution
 
becraigCommented:
If you are using certutil for import update your command to reflect

certutil -user -importpfx my cert.pfx NoExport
0
 
Skumar_CCSAAuthor Commented:
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
 
becraigCommented:
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
 
Skumar_CCSAAuthor Commented:
thank you so much...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now