0

I used https://www.sslforfree.com/ to generate a 90 days certificate, and downloaded a zip file which contains 3 files.

  • ca_bundle.crt
  • certificate.crt
  • private.key

but I'm using haproxy and I need a .pem file. how should convert these 3 files into a .pem file and use it inside haproxy config ?

Majid Abdolhosseini
  • 2,191
  • 4
  • 31
  • 59
  • the crt file may be a pem file. It is common for people to use .crt (short for certificate) for certificates encode in pem. if you look in the file and you see something that says BEGIN it is in pem format already. you don't need to rename the file as .pem to use it. here is some more details, including how to convert if the file is actual der encoded. https://serverfault.com/questions/9708/what-is-a-pem-file-and-how-does-it-differ-from-other-openssl-generated-key-file – toppk Sep 04 '22 at 18:55

0 Answers0