I'm trying to make certificate, which will have non-exportable private key once it is installed. Currently I'm creating cer and pvk files using makecert
and then merging them to pfx file using pvk2pfx
file. When creating private key, I'm not adding -pe
option, hence I would expect my private key be non-exportable. Yet, when I'm importing pfx file, certificate import wizard features "Mark key as exportable". This makes it possible to export private key once it is imported (which I don't want).
I believe I might misunderstand some aspects of certificate creation, so, my question is - is it actually possible to generate certificate file, which will persistently restrict private key export after importing it?