{"id":368865,"date":"2021-11-17T19:00:00","date_gmt":"2021-11-17T16:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/what-are-csr-files-and-how-do-you-create-them-cloudsavvy-it\/"},"modified":"2021-11-17T19:00:00","modified_gmt":"2021-11-17T16:00:00","slug":"what-are-csr-files-and-how-do-you-create-them-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/what-are-csr-files-and-how-do-you-create-them-cloudsavvy-it\/","title":{"rendered":"#What Are CSR Files and How Do You Create Them? \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a424b8a08d2d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a424b8a08d2d\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/what-are-csr-files-and-how-do-you-create-them-cloudsavvy-it\/#What_Makes_Up_a_CSR_File\" >What Makes Up a CSR File?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/what-are-csr-files-and-how-do-you-create-them-cloudsavvy-it\/#How_to_Create_a_CSR_File\" >How to Create a CSR File<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#What Are CSR Files and How Do You Create Them? \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\nA Certificate Signing Request (CSR) file is something you generate and give to a Certificate Authority, who in turn signs and sends you the requested SSL certificate that used for enabling HTTPS on your web server.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_Makes_Up_a_CSR_File\"><\/span>What Makes Up a CSR File?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CSR files contain information on your organization and the type of certificate you\u2019re requesting. They\u2019re usually generated automatically with the help of a utility like OpenSSL. If you\u2019re using LetsEncrypt, CSR file creation is all managed by certbot for you.<\/p>\n<p>CSR files contain the following info:<\/p>\n<ul>\n<li>Common Name (CN) \u2013 Your server\u2019s hostname. It\u00a0<em>must<\/em> match exactly, or your users will see an error page in their browser saying the certificate is untrusted. You can use wildcards (e.g., <code>*.domain.com<\/code>) to request a wildcard certificate <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>lying to all subdomains. A wildcard like this applies to <code>www<\/code>, but if you\u2019re looking to secure your root domain and all subdomains, you\u2019ll need two separate certificates.\u00a0Common Name is the only field that is technically required, so you could leave everything else blank if you desired. However, it\u2019s good to fill out the others.<\/li>\n<li>Organization (O) \u2013 The full legal name of your company, including any suffixes such as LLC. If you\u2019re requesting an EV or OV certificate (<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.troyhunt.com\/extended-validation-certificates-are-really-really-dead\/\">which are entirely pointless<\/a>), it will need to be validated. For a normal SSL though, you can put whatever, as it\u2019s not checked and nor even required.<\/li>\n<li>Organizational Unit (OU) \u2013 The division of your company that is handling the certificate.<\/li>\n<li>Country (C) \u2013 The two-letter country code of the country you\u2019re located in.<\/li>\n<li>State\/County\/Region (S) \u2013 The full name of the state you\u2019re located in.<\/li>\n<li>City\/Locality (L) \u2013 The full name of the city you\u2019re located in.<\/li>\n<li>Email Address \u2013 Your organization\u2019s email address.<\/li>\n<li>The RSA public key used<\/li>\n<\/ul>\n<p>The only one that affects how your CSR file is processed is your common name. The domain name will need to be validated to prevent you from registering someone else\u2019s domain; you\u2019ll be given a challenge from the Certificate Authority later in the process to prove you own the domain, but the CSR file has no effect on that.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>What Is a PEM File and How Do You Use It?<\/em><\/strong><\/p>\n<p>The actual CSR file itself is in PEM format, and is a large chunk of base64 encoded data:<\/p>\n<pre>-----BEGIN CERTIFICATE REQUEST-----&#13;\nMIICYDCCAUgCAFAwGzEZMBcGA1UEAwwQKi5wcm92aWRlbmNlLnBlbTCCASIwDQYJ&#13;\nKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA3vPkQJejmFk20mZT\/J2995ibnz9MV&#13;\n2hd+ltxX0gS9\/rDZgGZA8nyPojpXVJbLxJ5PuSqmyZrDA2F3YvCwy13b7QZT\/f56&#13;\nmH3103cVaefhfy+Lc7JSJZtJkw6mVBz9Vz+cpmc3hm0DV3tIZW4L8DKYVQoWl3Ed&#13;\nN0nsHykoI02ZoVdDL+AZU6sNJ2LV9j0LuS2YZkGU7PHsij2W2zROtyL7HdnZp5m6&#13;\n6e8e6ro9uBoCHBVSEeCDgBHLVQ92IRzPTzpSDr7dYhA2YHPbrjt6T63IgwiR4CU0&#13;\n2Iq282KasNw1jkyIil9\/5GPsqHH5Fw0Le\/7Goqrk2Ez3zHwu7pv88AkCAwEAAaAA&#13;\nMA0GCSqGSIb3DQEBCwUAA4IBAQADq9KOCkyLNA7t6RDPatw006CR8zETGqlfnQ2h&#13;\njxjDZlBWZbAVg6ftEMawxuKRbfw1bmJn53QSMpeX5HiMQLHliw3vsoIsRMPbwdxr&#13;\nj2ydJhYO95ktk4JRvD3\/YR8hRYrGD4EYlsC+u1RwWTXXZ9ZjTvDtf4LZccKAysOW&#13;\nvM88R3pWCpDzTg4KWDw1jsq7Y9ISTYuBkd7d+d7GvK\/VxITx8kSAgJRGkd54nlet&#13;\npZdBwdY95Jg0AyecAE5GSNPiHmRTkm\/rTXIPOyGY1kO9Mk\/c+q+ZTEhH53v5bzUw&#13;\nyrLZuJkNL3KiNbZIWvQ3ljHNeM3+9437n4W3nDTcGL2Bi41n&#13;\n-----END CERTIFICATE REQUEST-----<\/pre>\n<p>You won\u2019t want to edit this manually though; instead, you can use a tool like OpenSSL to generate it on your server.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Create_a_CSR_File\"><\/span>How to Create a CSR File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If your server is running Linux, you\u2019ll likely have OpenSSL installed already if you\u2019ve installed Apache or Ubuntu. If not, you can install it from your distro\u2019s package manager:<\/p>\n<pre>sudo apt-get install openssl<\/pre>\n<p>Then, run the following command to launch the CSR creation wizard:<\/p>\n<pre>openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr<\/pre>\n<p>This will generate a new private key to use during the process and save it to <code>server.key<\/code>. You\u2019ll then be prompted for your info; you can leave most of it blank if you wish, but make sure the Common Name is correct.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage imgchk9 alignnone wp-image-1802 size-full\" srcset=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/09\/db599e08.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/09\/db599e08.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/09\/db599e08.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"To write a new private key, you'll be prompted to enter your information that will be incorporated into your certificate request.\" width=\"700\" height=\"384\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Your signing request will be saved to <code>server.csr<\/code>. Your public key is included in this request, but you\u2019ll want to save the private key for renewals in the future.<\/p>\n<p>You\u2019ll then need to provide your Certificate Authority with the CSR file to proceed with the SSL certificate creation process. If you\u2019re using certbot, this is handled automatically, and you won\u2019t have to worry about CSR files at all.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/1800\/what-are-csr-files-and-how-do-you-create-them\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#What Are CSR Files and How Do You Create Them? \u2013 CloudSavvy IT&#8221; A Certificate Signing Request (CSR) file is something you generate and give to a Certificate Authority, who in turn signs and sends you the requested SSL certificate that used for enabling HTTPS on your web server. What Makes Up a CSR File?&#8230;<\/p>\n","protected":false},"author":1,"featured_media":368866,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/09\/db599e08.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-368865","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/368865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=368865"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/368865\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/368866"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=368865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=368865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=368865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}