{"id":2348,"date":"2018-06-06T11:03:34","date_gmt":"2018-06-06T16:33:34","guid":{"rendered":"https:\/\/www.rapidsslonline.com\/blog\/?p=2348"},"modified":"2020-12-01T05:24:18","modified_gmt":"2020-12-01T10:54:18","slug":"how-to-create-a-pem-file-from-your-ssl-certificates","status":"publish","type":"post","link":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/","title":{"rendered":"How to create a PEM file from your SSL certificates"},"content":{"rendered":"<h2>PEM files are oftentimes required by servers<\/h2>\n<p>SSL certificates have several different file formats. What works for one server might not work for another. Fortunately, I&#8217;m here to help you figure out how to turn your SSL certificate files into a .PEM file.<\/p>\n<p>A .PEM file is sometimes referred to as a concatenated certificate container file. Concatenated is a five dollar word if I&#8217;ve ever heard one. But don&#8217;t let it distract you, all it means is that all of the certificates in the chain need to be combined into a single file.<\/p>\n<p>It&#8217;s always amazed me that something as complicated as encrypting a connection between a web server and a client can be facilitated by a file that you copy and pasted into a text editor. Think about that for a second the next time your IT guys complains to you about the certificate file being the wrong format. You literally train a chimpanzee to concatenate a certificate file.<\/p>\n<h2>How to Concatenate your entire SSL certificate trust chain into a .PEM file<\/h2>\n<p>Ok, stay with me because this is practically rocket science. Take the SSL certificate that your CA sent you and open it in a text editor.<\/p>\n<p>Ok, a quick aside, do not use Microsoft Word, Word Processor or any other program that autocorrects. Use Notepad or whatever hemp-wearing, literary safe space that Apple offers as Notepad&#8217;s alternative.<\/p>\n<p>Now, take the SSL certificate you just opened in Notepad, copy and paste the whole thing (even the Begin and End certificate prompt at the five dashes on either side of them) into a new Notepad document.<\/p>\n<p>If your SSL certificate came with an intermediate, download it, open it in notepad and do the same thing, even down to the prompts and dashes.<\/p>\n<p>Now, finally, download the root certificate and follow the same procedure, opening it in notepad, copying the entire file (dashes and all) and pasting it in the new text file with the other certificates.<\/p>\n<p>This should be the sequence:<\/p>\n<blockquote>\n<p style=\"text-align: left;\">&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Primary SSL certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<br \/>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Intermediate certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<br \/>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Root certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<\/p>\n<\/blockquote>\n<p>Great, now save the file as &#8220;Whatever_you_want.pem&#8221;<\/p>\n<h2>How to Concatenate your Server and Intermediate certificates<\/h2>\n<p>Similar to the last section, you&#8217;re going to be opening the files you need in a text editor and copy\/pasting them into a new document. The order should be:<\/p>\n<blockquote>\n<p style=\"text-align: left;\">&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Primary SSL certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<br \/>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Intermediate certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<\/p>\n<\/blockquote>\n<p>Once again, save the file as &#8220;Something_You&#8217;ll_Remember.pem&#8221;<\/p>\n<h2>How to Concatenate your Private key and Trust Chain<\/h2>\n<p>Once again, the method is the same for this procedure &#8211; copy\/pasting certificate files in the correct order into a new notepad document &#8211; but adding the Private Key means you&#8217;ll now potentially be combining four files.<\/p>\n<p>The private key goes first, then you can revert to the order we have used in the other procedures: End User Cert, Intermediate, Root.<\/p>\n<p>It should look like this:<\/p>\n<blockquote>\n<p>&#8212;&#8211;BEGIN RSA PRIVATE KEY&#8212;&#8211;<br \/>(Your Private Key)<br \/>&#8212;&#8211;END RSA PRIVATE KEY&#8212;&#8211;<br \/>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Primary SSL certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<br \/>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Intermediate certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<br \/>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br \/>(Your Root certificate)<br \/>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;<\/p>\n<\/blockquote>\n<p>Now just save the file with a .pem extension and you&#8217;re good to go!<\/p>\n<p>Stay cautious, my friends.<\/p>\n<p>\u00a0<\/p>\n<h3>The Most Inexpensive SSL Certificates<\/h3>\n<div style=\"margin-bottom: 20px;\">\n<div style=\"float: left; margin-right: 20px;\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2018\/09\/rapidssl-small-logo.png\" alt=\"RapidSSL Logo\" align=\"left\" \/><\/div>\n<div>\n<p>Assure the better SSL security for a website. Implement the trusted SSL certificate from SSL brands like RapidSSL and GeoTrust.<\/p>\n<div style=\"text-align: right; float: right;\"><a class=\"more-link\" href=\"https:\/\/www.rapidsslonline.com\/\">Buy SSL Certificates at Inexpensive Prices<\/a><\/div>\n<\/div>\n<div class=\"clear\">\u00a0<\/div>\n<\/div>\n<p>\u00a0<\/p>\n\n\n<div class=\"graysection\"><h2>GeoTrust SSL Certificates &amp; Save 58%<\/h2>\n<p>Secure a website with world-class and the most trusted GeoTrust CA Certificates. It offers 256-bit encryption, dynamic site seal, unlimited server licenses, free reissuance, and more.<\/p>\n<p><a class=\"more-link floatnone\" style=\"text-decoration: none;\" href=\"https:\/\/www.rapidsslonline.com\/ssl-brands\/geotrust.aspx\">Shop for GeoTrust SSL Certificates<\/a><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PEM files are oftentimes required by servers SSL certificates have several different file formats. What works for one server might not work for another. Fortunately, I&#8217;m here to help you &hellip; <span class=\"d-flex justify-content-end\"><a href=\"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/\" class=\"btn btn-blue\">Read More <span class=\"screen-reader-text\">How to create a PEM file from your SSL certificates<\/span><\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":2195,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[14],"tags":[1400],"class_list":["post-2348","post","type-post","status-publish","format-standard","has-post-thumbnail","category-ssl-certificate","tag-ssl-certificates"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create a PEM file from your SSL certificates - RapidSSLonline<\/title>\n<meta name=\"description\" content=\"A comprehensive guide on How to create a PEM file from your SSL certificates using a private key and intermediate SSL certificate.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a PEM file from your SSL certificates\" \/>\n<meta property=\"og:description\" content=\"A comprehensive guide on How to create a PEM file from your SSL certificates using a private key and intermediate SSL certificate.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/\" \/>\n<meta property=\"og:site_name\" content=\"RapidSSLOnline Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/rsosslcertificates\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-06T16:33:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-01T10:54:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/12\/ssl-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Patrick Nohe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to create a PEM file from your SSL certificates\" \/>\n<meta name=\"twitter:creator\" content=\"@rsossl\" \/>\n<meta name=\"twitter:site\" content=\"@rsossl\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Patrick Nohe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a PEM file from your SSL certificates - RapidSSLonline","description":"A comprehensive guide on How to create a PEM file from your SSL certificates using a private key and intermediate SSL certificate.","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:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/","og_locale":"en_US","og_type":"article","og_title":"How to create a PEM file from your SSL certificates","og_description":"A comprehensive guide on How to create a PEM file from your SSL certificates using a private key and intermediate SSL certificate.","og_url":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/","og_site_name":"RapidSSLOnline Blog","article_publisher":"https:\/\/www.facebook.com\/rsosslcertificates\/","article_published_time":"2018-06-06T16:33:34+00:00","article_modified_time":"2020-12-01T10:54:18+00:00","og_image":[{"width":540,"height":360,"url":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/12\/ssl-1.jpg","type":"image\/jpeg"}],"author":"Patrick Nohe","twitter_card":"summary_large_image","twitter_title":"How to create a PEM file from your SSL certificates","twitter_creator":"@rsossl","twitter_site":"@rsossl","twitter_misc":{"Written by":"Patrick Nohe","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#article","isPartOf":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/"},"author":{"name":"Patrick Nohe","@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/3a1975e808f88c1245fd96096b85debb"},"headline":"How to create a PEM file from your SSL certificates","datePublished":"2018-06-06T16:33:34+00:00","dateModified":"2020-12-01T10:54:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/"},"wordCount":598,"commentCount":0,"image":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/12\/ssl-1.jpg","keywords":["SSL Certificates"],"articleSection":["SSL Certificate"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/","url":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/","name":"How to create a PEM file from your SSL certificates - RapidSSLonline","isPartOf":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#primaryimage"},"image":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/12\/ssl-1.jpg","datePublished":"2018-06-06T16:33:34+00:00","dateModified":"2020-12-01T10:54:18+00:00","author":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/3a1975e808f88c1245fd96096b85debb"},"description":"A comprehensive guide on How to create a PEM file from your SSL certificates using a private key and intermediate SSL certificate.","breadcrumb":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#primaryimage","url":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/12\/ssl-1.jpg","contentUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/12\/ssl-1.jpg","width":540,"height":360,"caption":"Enable Multiple SSL On One IP Using SNI through Virtual Host"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rapidsslonline.com\/blog\/how-to-create-a-pem-file-from-your-ssl-certificates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rapidsslonline.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a PEM file from your SSL certificates"}]},{"@type":"WebSite","@id":"https:\/\/www.rapidsslonline.com\/blog\/#website","url":"https:\/\/www.rapidsslonline.com\/blog\/","name":"RapidSSLOnline Blog","description":"SSL Best Practices for Secure Website","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rapidsslonline.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/3a1975e808f88c1245fd96096b85debb","name":"Patrick Nohe","url":"https:\/\/www.rapidsslonline.com\/blog\/author\/patricknohe\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/posts\/2348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/comments?post=2348"}],"version-history":[{"count":0,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/posts\/2348\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/media\/2195"}],"wp:attachment":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/media?parent=2348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/categories?post=2348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/tags?post=2348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}