Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'pvk2pfx.exe' is not recognized as an internal or external command in command promt

for creating certificate run this command

pvk2pfx.exe -pvk C:\myCerts\ELServer.pvk -spc C:\myCerts\ELServer.cer -pfx C:\myCerts\ELServer.pfx

following error occurred in command prompt

'pvk2pfx.exe' is not recognized as an internal or external command, operable program or batch file.

like image 977
Jatin Gadhiya Avatar asked Apr 10 '14 07:04

Jatin Gadhiya


People also ask

Where is Pvk2Pfx exe located?

A 32-bit version of the Pvk2Pfx tool is located in the bin\x86 folder of the WDK. A 64-bit version of the tool is located in the bin\x64 of the WDK. For example, on an x64-based computer running Windows 10, the path is C:\Program Files (x86)\Windows Kits\10\bin\x64.

Is not recognized as an internal or external command operable program or batch file Windows 10?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.


1 Answers

I got exactly this error. The first thing I did was try to search for the .exe using Powershell:

Get-ChildItem -Path C:\ -Filter pvk2pfx.exe -Recurse -ErrorAction SilentlyContinue -Force

I could not find it but I could find makecert.exe with this command.

Turned out I did not have the package Desktop development with C++ installed for Visual Studio 2017. After I added this everything worked. Remember to run the command through Developer Command Prompt for VS 2017.

If you do not use Visual Studio 2017 you can download Windows Driver Kit (WDK) from here instead:

https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit

enter image description here

like image 146
Ogglas Avatar answered Sep 29 '22 05:09

Ogglas