(4 votes, average: 5.00 out of 5)
Loading...
Are you having trouble converting a .cer file to a .crt using OpenSSL? If affirmative, there is no need to – fret, as we are here to help as always. And you may not be the only one facing this issue, as this issue is a relatively standard problem. Especially for those needing to shield their servers using an SSL cert or any other X.509 digital certificate.
While both file formats (.csr and .cer) are used interchangeably, certain situations create the need for a specific file format owing to the server used because every server needs different file formats and extensions to work.
Automatically Convert SSL Certificate File Format using Free SSL Converter Tool
Some servers might need .pfx, .crt, .pem, etc., and others might need a .cer file. So, it becomes paramount for you to know how to change a file format into another. This article will explore how to convert a .cer extension file to a .crt file and vice-versa. Why wait? Let’s start!
Follow the steps mentioned below to convert .cer to .crt in OpenSSL:
Prerequisite: Download and Install OpenSSL on your device.
Type the below-mentioned command to convert .cer to .crt in OpenSSL:
openssl x509 -inform PEM -in <filepath>/certificate.cert -out certificate.crt
This is all that you need to do. It was simple, correct? Now, as a bonus, let’s see how to convert .crt to .cer in OpenSSL in the next section.
Follow the steps mentioned below to convert .crt to .cer:
Kudos! You have successfully converted your SSL cert having .crt extension to .cer. And, with this, your issue has been resolved!
Recommended: How to Generate PFX File or P12 File Using OpenSSL?