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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With