{"id":707,"date":"2019-09-05T19:38:23","date_gmt":"2019-09-05T19:38:23","guid":{"rendered":"https:\/\/cheapsslsecurity.com\/p\/?p=707"},"modified":"2020-06-19T10:49:25","modified_gmt":"2020-06-19T10:49:25","slug":"convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem","status":"publish","type":"post","link":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/","title":{"rendered":"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM"},"content":{"rendered":"<p><a href=\"https:\/\/cheapsslsecurity.com\/sslproducts.html\">X.509 digital certificates<\/a> are files that are used to affirm the identity of an organization and to protect data integrity. They\u2019re a variety of digitally encoded and\/or signed documents that include <a href=\"https:\/\/cheapsslsecurity.com\/sslproducts\/codesigningcertificate.html\">code signing certificates<\/a>, SSL\/TLS certificates, personal authentication and S\/MIME certificates, etc.<\/p>\n<p><!--more--><\/p>\n<p>Need to convert a certificate to PEM? No problem. We&#8217;ll walk you through the process in OpenSSL.<\/p>\n<p>Typically, x.509 certificates can have a <a href=\"https:\/\/medium.com\/@nirmaluchoudhari\/converting-certificates-using-openssl-9957a743c66b\" target=\"_blank\" rel=\"noopener noreferrer\">variety of file extension types that you can convert certificates and keys to<\/a>, including:<\/p>\n<ul>\n<li>Certificate (.CRT) or (.CER)<\/li>\n<li>Distinguished encoding rules (.DER)<\/li>\n<li>Privacy-enhanced electronic mail (.PEM)<\/li>\n<\/ul>\n<p>There are different reasons why you may want to convert them to other formats, such as your server not approving of the existing file format or the file not being compatible with software. But regardless of why you may want to convert your certificate to PEM \u2014 if you want to <a href=\"https:\/\/cheapsslsecurity.com\/ssltools\/ssl-converter.php\">convert these files easily<\/a>, you can do so by using OpenSSL. There are a few simple OpenSSL commands that will correctly change the file format easily.<\/p>\n<div class=\"graysection\">\n<h2>Purchase SAN Certificate\/Multi-Domain SSL &amp; Save Up to 88%!<\/h2>\n<p>We offer the best discount on all types of SAN SSL Certificates (Multi-Domain SSL). We offer certificates from the leading CAs, including Comodo CA, Sectigo, Thawte, and GeoTrust with SAN certificates starting as low as $18.02 per year.<\/p>\n<p><a class=\"comparebtn\" href=\"https:\/\/cheapsslsecurity.com\/sslproducts\/san-ssl-certificates.html\">Shop SAN SSL Certificates<\/a><\/p>\n<\/div>\n<h2>How to Convert Your Certificates and Keys to PEM Using OpenSSL<\/h2>\n<p>There are four basic ways to manipulate certificates \u2014 you can view, transform, combine, or extract them. To transform one type of encoded certificate to another \u2014 such as converting CRT to PEM, CER to PEM, and DER to PEM \u2014 you\u2019ll want to use the following commands:<\/p>\n<h3>OpenSSL: Convert CRT to PEM:<\/h3>\n<p>Type the following code into your OpenSSL client:<\/p>\n<p><code>openssl x509 -in cert.crt -out cert.pem<\/code><\/p>\n<h3>OpenSSL: Convert CER to PEM<\/h3>\n<p><code>openssl x509 -in cert.cer -out cert.pem<\/code><\/p>\n<h3>OpenSSL: Convert DER to PEM<\/h3>\n<p><code>openssl x509 -in cert.der -out cert.pem<\/code><\/p>\n<p>You can also use similar commands to convert PEM files to these different types of files as well. Furthermore, there are additional parameters you can specify in your command \u2014 such as -inform and -outform \u2014 but the above examples are the basic, bare bones OpenSSL commands.<\/p>\n<p>Haven\u2019t purchased your x.509 certificate? Get your certificates from the leading certificate authorities (CA) at the best prices \u2014 guaranteed.<\/p>\n<div class=\"graysection\">\n<h2>Purchase an x.509 Digital Certificate from CheapSSLSecurity &amp; Save Up to 88%!<\/h2>\n<p>We offer the internet&#8217;s best discount on x.509 digital certificates such as SSL\/TLS certificates and code signing certificates. Our SSL certificates start as low as $5.45 per year.<\/p>\n<p><a class=\"comparebtn\" href=\"https:\/\/cheapsslsecurity.com\">Buy SSL Certificate at $5.45<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>X.509 digital certificates are files that are used to affirm the identity of an organization and to protect data integrity. They\u2019re a variety of digitally encoded and\/or signed documents that include code signing certificates, SSL\/TLS certificates, personal authentication and S\/MIME &hellip; <a href=\"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[65,64],"class_list":["post-707","post","type-post","status-publish","format-standard","hentry","category-ssl-advanced","tag-openssl","tag-x-509"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM<\/title>\n<meta name=\"description\" content=\"W&#039;ll walk you through how to convert a certificate to PEM in OpenSSL. You&#039;ll be able to use OpenSSL to convert CRT to PEM, CER to PEM, and DER to PEM.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM\" \/>\n<meta property=\"og:description\" content=\"W&#039;ll walk you through how to convert a certificate to PEM in OpenSSL. You&#039;ll be able to use OpenSSL to convert CRT to PEM, CER to PEM, and DER to PEM.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/\" \/>\n<meta property=\"og:site_name\" content=\"Cheap SSL Security\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CheapSSLSecurities\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-05T19:38:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-19T10:49:25+00:00\" \/>\n<meta name=\"author\" content=\"casey.crane\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sslsecurity\" \/>\n<meta name=\"twitter:site\" content=\"@sslsecurity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"casey.crane\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/\"},\"author\":{\"name\":\"casey.crane\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#\\\/schema\\\/person\\\/d9c1744bb0931c1942814061a5aca108\"},\"headline\":\"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM\",\"datePublished\":\"2019-09-05T19:38:23+00:00\",\"dateModified\":\"2020-06-19T10:49:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/\"},\"wordCount\":425,\"keywords\":[\"openssl\",\"x.509\"],\"articleSection\":[\"SSL Advanced\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/\",\"url\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/\",\"name\":\"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#website\"},\"datePublished\":\"2019-09-05T19:38:23+00:00\",\"dateModified\":\"2020-06-19T10:49:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#\\\/schema\\\/person\\\/d9c1744bb0931c1942814061a5aca108\"},\"description\":\"W'll walk you through how to convert a certificate to PEM in OpenSSL. You'll be able to use OpenSSL to convert CRT to PEM, CER to PEM, and DER to PEM.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SSL Help\",\"item\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SSL Advanced\",\"item\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/ssl-advanced\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#website\",\"url\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/\",\"name\":\"Cheap SSL Security\",\"description\":\"Shop for SSL Certificates at Cheap Prices\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#\\\/schema\\\/person\\\/d9c1744bb0931c1942814061a5aca108\",\"name\":\"casey.crane\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g\",\"caption\":\"casey.crane\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM","description":"W'll walk you through how to convert a certificate to PEM in OpenSSL. You'll be able to use OpenSSL to convert CRT to PEM, CER to PEM, and DER to PEM.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/","og_locale":"en_US","og_type":"article","og_title":"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM","og_description":"W'll walk you through how to convert a certificate to PEM in OpenSSL. You'll be able to use OpenSSL to convert CRT to PEM, CER to PEM, and DER to PEM.","og_url":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/","og_site_name":"Cheap SSL Security","article_publisher":"https:\/\/www.facebook.com\/CheapSSLSecurities","article_published_time":"2019-09-05T19:38:23+00:00","article_modified_time":"2020-06-19T10:49:25+00:00","author":"casey.crane","twitter_card":"summary_large_image","twitter_creator":"@sslsecurity","twitter_site":"@sslsecurity","twitter_misc":{"Written by":"casey.crane","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/#article","isPartOf":{"@id":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/"},"author":{"name":"casey.crane","@id":"https:\/\/cheapsslsecurity.com\/p\/#\/schema\/person\/d9c1744bb0931c1942814061a5aca108"},"headline":"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM","datePublished":"2019-09-05T19:38:23+00:00","dateModified":"2020-06-19T10:49:25+00:00","mainEntityOfPage":{"@id":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/"},"wordCount":425,"keywords":["openssl","x.509"],"articleSection":["SSL Advanced"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/","url":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/","name":"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM","isPartOf":{"@id":"https:\/\/cheapsslsecurity.com\/p\/#website"},"datePublished":"2019-09-05T19:38:23+00:00","dateModified":"2020-06-19T10:49:25+00:00","author":{"@id":"https:\/\/cheapsslsecurity.com\/p\/#\/schema\/person\/d9c1744bb0931c1942814061a5aca108"},"description":"W'll walk you through how to convert a certificate to PEM in OpenSSL. You'll be able to use OpenSSL to convert CRT to PEM, CER to PEM, and DER to PEM.","breadcrumb":{"@id":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cheapsslsecurity.com\/p\/convert-a-certificate-to-pem-crt-to-pem-cer-to-pem-der-to-pem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"SSL Help","item":"https:\/\/cheapsslsecurity.com\/p\/"},{"@type":"ListItem","position":2,"name":"SSL Advanced","item":"https:\/\/cheapsslsecurity.com\/p\/ssl-advanced\/"},{"@type":"ListItem","position":3,"name":"Convert a Certificate to PEM: CRT to PEM, CER to PEM, DER to PEM"}]},{"@type":"WebSite","@id":"https:\/\/cheapsslsecurity.com\/p\/#website","url":"https:\/\/cheapsslsecurity.com\/p\/","name":"Cheap SSL Security","description":"Shop for SSL Certificates at Cheap Prices","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cheapsslsecurity.com\/p\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cheapsslsecurity.com\/p\/#\/schema\/person\/d9c1744bb0931c1942814061a5aca108","name":"casey.crane","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g","caption":"casey.crane"}}]}},"_links":{"self":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/posts\/707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/comments?post=707"}],"version-history":[{"count":0,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/posts\/707\/revisions"}],"wp:attachment":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/media?parent=707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/categories?post=707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/tags?post=707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}