A .net core 3.1 application to merge .cer and .pvk files into a .pfx file.
This solution is using the deprecated CryptImportKey function.
It obviously runs on windows only and is targeting x86.
Useful links:
- PVK file format
- Seclib source which contains the DllImport declarations and all the PVK file handling. Some minor modifications (alias HMAC) had to be done in the source code in order to compile in .net core.