I have a working solution that creates valid .pfx files (based on CryptoAPI being wrapped in C#). I can import this into my private tore, then export it to a .cer
HOWEVER (isnt there always a however?) what I can not do is generate the appropriate .cer file from code. OpenSSL (or any other third party elements) are not an option for this environment, neither is anything that requires a manual/GUI type operation....
I am sure the function exists in the API (CertMgr.msc must call "Something" when it does the magic...but two days of searching have yielded nothing.