Usage of Windows_TemporaryKey.pfx

Hello everyone,

Hope you are doing well.

I have a query on one of the files that are a part of CMake download. I did not find documentation on this:

When I download the sources, I get the file share/cmake-3.15/Templates/Windows/ Windows_TemporaryKey.pfx.

What is the functionality of this file? Is there a dependency on this file by cmake or other utilities in the download?

Regards,

Veena

It’s used by the Visual Studio generator here for building executables targeting Windows Store or Phone. This is because the tooling requires a certificate, so we provide a minimal certificate if the project doesn’t. If the project adds a .pfx file as a source file, e.g. passed to add_executable, then the default cert is not used.