title: How to create .pfx file from certificate and private key?
body: <p>I need .pfx file to install https on website on IIS. </p>
  
  <p>I have two separate files: certificate (.cer or pem) and private key (.crt) but IIS accepts only .pfx files.</p>
  
  <p>I obviously installed certificate and it is available in certificate manager (mmc) but when I select Certificate Export Wizard I cannot select PFX format (it's greyed out)</p>
  
  <p>Are there any tools to do that or C# examples of doing that programtically?</p>