{"id":1266,"date":"2017-04-26T21:10:21","date_gmt":"2017-04-26T21:10:21","guid":{"rendered":"https:\/\/www.thesslstore.com\/knowledgebase\/?post_type=ht_kb&#038;p=1266"},"modified":"2017-09-26T10:37:42","modified_gmt":"2017-09-26T10:37:42","slug":"generate-csr-apache-web-server-using-openssl-v-2","status":"publish","type":"ht_kb","link":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/","title":{"rendered":"How to Generate a CSR for Apache Web Server Using OpenSSL"},"content":{"rendered":"<p>The following instructions will guide you through the CSR generation process on Apache OpenSSL. To learn more about CSRs and the importance of your private key, reference our <a href=\"https:\/\/www.thesslstore.com\/knowledgebase\/knowledge-base\/cetificate-signing-request-overview\/\">Overview of Certificate Signing Request<\/a> article. If you already generated the CSR and received your trusted SSL certificate, reference our <a href=\"https:\/\/www.thesslstore.com\/knowledgebase\/knowledge-base\/apache-openssl-installation\/\">SSL Installation Instructions <\/a>and disregard the steps below.<\/p>\n<h2>1. Log In<\/h2>\n<p>Log in to your server&#8217;s\u00a0terminal via Secure Shell (SSH).<\/p>\n<h2>2. Run CSR Generation Command<\/h2>\n<p>Generate a <strong>private key<\/strong> and <strong>CSR<\/strong> by running the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-170\" src=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line.jpg\" alt=\"Apache Open SSL Step2\" width=\"526\" height=\"141\" srcset=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line.jpg 526w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line-300x80.jpg 300w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line-50x13.jpg 50w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line-60x16.jpg 60w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line-35x9.jpg 35w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/>Here is the plain text version to copy and paste into your terminal:<\/p>\n<pre>openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr<\/pre>\n<p><strong><em>Note:<\/em><\/strong><em> Replace \u201cserver\u201d with the domain name you intend to secure.<\/em><\/p>\n<h2>3. Enter your Information<\/h2>\n<p>Enter the following <strong>CSR details<\/strong> when prompted:<\/p>\n<ol>\n<li><strong>Common Name:<\/strong> The FQDN (fully-qualified domain name) you want to secure with the certificate such as www.google.com, secure.website.org, *.domain.net, etc.<\/li>\n<li><strong>Organization:<\/strong>\u00a0The full legal name of your organization including the corporate identifier.<\/li>\n<li><strong>Organization Unit (OU): <\/strong>Your department such as &#8216;Information Technology&#8217; or \u2018Website Security.\u2019<\/li>\n<li><strong>City or Locality: <\/strong>The locality or city where your organization is legally incorporated. Do not abbreviate.<\/li>\n<li><strong>State or Province: <\/strong>The state or province where your organization is legally incorporated. Do not abbreviate.<\/li>\n<li><strong>Country:<\/strong>\u00a0The official two-letter country code (i.e. US, CH) where your organization is legally incorporated.<\/li>\n<\/ol>\n<p><strong><em>Note:<\/em><\/strong><em> You are not required to enter a password or passphrase. This optional field is for applying additional security to your key pair.<\/em><\/p>\n<h2>4. Copy\u00a0the CSR text from the file<\/h2>\n<p>Locate and open the newly created CSR in a text editor such as Notepad and copy all the text including:<\/p>\n<pre>-----BEGIN CERTIFICATE REQUEST-----\r\nAnd\r\n-----END CERTIFICATE REQUEST-----<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-171\" src=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text.jpg\" alt=\"Apache Open SSL Step4\" width=\"1032\" height=\"534\" srcset=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text.jpg 1032w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text-300x155.jpg 300w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text-768x397.jpg 768w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text-1024x530.jpg 1024w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text-50x26.jpg 50w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text-60x31.jpg 60w, https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-4-CSR-Text-35x18.jpg 35w\" sizes=\"auto, (max-width: 1032px) 100vw, 1032px\" \/><strong><em>Note 1:<\/em><\/strong><em> Your CSR should be saved in the same user directory that you SSH into unless otherwise specified by you. <\/em><strong><em>Note 2: <\/em><\/strong><em>We recommend saving or backing up your newly generate \u201c.key\u201d file as this will be required later during the installation process.<\/em><\/p>\n<h2>5.\u00a0Generate the order<\/h2>\n<p>Return to the <strong>Generation Form<\/strong> on our website and paste the entire CSR into the blank text box and continue with completing the generation process.<\/p>\n<p>Upon generating your CSR, your order will enter the validation process with the issuing Certificate Authority (CA) and require the certificate requester to complete some form of validation depending on the certificate purchased. For information regarding the different levels of the validation process and how to satisfy the industry requirements, reference our <a href=\"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-validation\/\">validation articles<\/a>.<\/p>\n<p>After you complete the validation process and receive the trusted SSL Certificate from the issuing Certificate Authority (CA), proceed with the next step using our <a href=\"https:\/\/www.thesslstore.com\/knowledgebase\/knowledge-base\/apache-openssl-installation\/\">SSL Installation Instructions for Apache OpenSSL<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following instructions will guide you through the CSR generation process on Apache OpenSSL. To learn more about CSRs and the importance of your private key, reference our Overview of Certificate Signing Request article. If you already generated the CSR and received your trusted SSL certificate, reference our SSL Installation&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[23],"ht-kb-tag":[],"class_list":["post-1266","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ssl-generate"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122<\/title>\n<meta name=\"description\" content=\"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.\" \/>\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.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122\" \/>\n<meta property=\"og:description\" content=\"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thesslstoredotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2017-09-26T10:37:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122\" \/>\n<meta name=\"twitter:description\" content=\"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n<meta name=\"twitter:site\" content=\"@thesslstore\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122","description":"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.","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.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/","og_locale":"en_US","og_type":"article","og_title":"How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122","og_description":"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.","og_url":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/","og_site_name":"Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/thesslstoredotcom","article_modified_time":"2017-09-26T10:37:42+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122","twitter_description":"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.","twitter_image":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","twitter_site":"@thesslstore","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/","name":"How to Generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL - The SSL Store\u2122","isPartOf":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/#primaryimage"},"image":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line.jpg","datePublished":"2017-04-26T21:10:21+00:00","dateModified":"2017-09-26T10:37:42+00:00","description":"Learn about how to generate a Certificate Signing Request (CSR) for Apache Web Server Using OpenSSL. The following instructions will guide you through the CSR generation process on Apache OpenSSL.","breadcrumb":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/#primaryimage","url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line.jpg","contentUrl":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/02\/Step-2-Key-Pair-Command-Line.jpg","width":526,"height":141},{"@type":"BreadcrumbList","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-generate\/generate-csr-apache-web-server-using-openssl-v-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thesslstore.com\/knowledgebase\/"},{"@type":"ListItem","position":2,"name":"How to Generate a CSR for Apache Web Server Using OpenSSL"}]},{"@type":"WebSite","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","name":"Knowledge Base","description":"TheSSLstore","publisher":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thesslstore.com\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization","name":"The SSL Store\u2122","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","contentUrl":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","width":300,"height":300,"caption":"The SSL Store\u2122"},"image":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/thesslstoredotcom","https:\/\/x.com\/thesslstore","https:\/\/www.linkedin.com\/company\/the-ssl-store","https:\/\/www.youtube.com\/user\/thesslstore"]}]}},"_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/1266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1266"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/1266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1266"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=1266"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=1266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}