title: How to fix ‘Certificate Import Error: The Private Key for this Client Certificate is missing or invalid' error in the import certificate file
body: <p>I work on Ubuntu 19. I have a .crt and a key file. I want to test my web app on https localhost.</p>
  
  <p>I wanted to add crt file to Chrome (settings > advanced > manage certificates -> import ). So I tried to import the .crt file but I got is this: </p>
  
  <p>"Certificate Import Error :
  The Private Key for this Client Certificate is missing or invalid"</p>
  
  <p>I googled it, but I found nothing helpful.</p>
  
  <p>I have also built the .pfx file (from .crt and key files) and imported it on chrome but I have error: "Your connection is not private" </p>
  
  <p>I have also tested it by Firefox and Opera and get the same error. </p>