title: Generate certificate from pfx that contains domain and root certificate
body: <p>I've been given a pfx file. I need to convert this into a crt file and key, where the crt file contains the following:
  Domain
  Intermediate (optional)
  Root</p>
  <p>Does anyone know what commands I need to run to obtain this?</p>
  <p>Thanks,</p>