{"id":25052,"date":"2022-02-02T15:03:05","date_gmt":"2022-02-02T15:03:05","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/"},"modified":"2023-08-30T14:47:45","modified_gmt":"2023-08-30T14:47:45","slug":"how-to-generate-a-csr-for-apache-web-server-using-openssl","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/","title":{"rendered":"How to Generate a CSR for Apache Web Server Using OpenSSL"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-black-color has-text-color\">This article provides you with information on how to generate a CSR for an Apache Web Server using OpenSSL.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\"><strong>1. Log In<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">Log in to your server\u2019s&nbsp;terminal via Secure Shell (SSH).<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\"><strong>2. Run CSR Generation Command<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">Generate a <strong>private key<\/strong> and <strong>CSR<\/strong> by running the following command:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33027655897\/original\/R_bTih8w5rzAHTKa_YCLnOrBzoljC-rL-g.png?1562324384\" alt=\"Apache Open SSL Step2\"\/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">Here is the plain text version to copy and paste into your terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-text-color\">openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr<\/pre>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong><em>Note:<\/em><\/strong><em>&nbsp;Replace \u201cserver\u201d with the domain name you intend to secure.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\"><strong>3. Enter your Information<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">Enter the following <strong>CSR details<\/strong> when prompted:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Common Name:<\/strong> The FQDN (fully-qualified domain name) you want to secure with the certificate such as <a href=\"http:\/\/www.google.com\" rel=\"noreferrer\">www.google.com<\/a>, secure.website.org, *.domain.net, etc.<\/li>\n\n\n\n<li><strong>Organization:<\/strong> The full legal name of your organization including the corporate identifier.<\/li>\n\n\n\n<li><strong>Organization Unit (OU):&nbsp;<\/strong>Your department such as \u2018Information Technology\u2019 or \u2018Website Security.\u2019<\/li>\n\n\n\n<li><strong>City or Locality:&nbsp;<\/strong>The locality or city where your organization is legally incorporated. Do not abbreviate.<\/li>\n\n\n\n<li><strong>State or Province:&nbsp;<\/strong>The state or province where your organization is legally incorporated. Do not abbreviate.<\/li>\n\n\n\n<li><strong>Country:<\/strong> The official two-letter country code (i.e. US, CH) where your organization is legally incorporated.<\/li>\n<\/ol>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong><em>Note:<\/em><\/strong><em>&nbsp;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\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\"><strong>4. Copy the CSR text from the file<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">Locate and open the newly created CSR in a text editor such as Notepad and copy all the text including:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-text-color\">-----BEGIN CERTIFICATE REQUEST----- And -----END CERTIFICATE REQUEST-----<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33027655898\/original\/p8cb-vRSw6bX2SnV7VG70uSU5cDR0510Rg.png?1562324385\" alt=\"Apache Open SSL Step4\"\/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong><em>Note 1:<\/em><\/strong><em>&nbsp;Your CSR should be saved in the same user directory that you SSH into unless otherwise specified by you.&nbsp;<\/em><strong><em>Note 2:&nbsp;<\/em><\/strong><em>We recommend saving or backing up your newly generated \u201c.key\u201d file as this will be required later during the installation process.<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\"><strong>5. Generate the order<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">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\n\n\n<p class=\"has-black-color has-text-color\">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\n\n\n<p class=\"has-black-color has-text-color\">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>This article provides you with information on how to generate a CSR for an Apache Web Server using OpenSSL. 1. Log In Log in to your server\u2019s&nbsp;terminal via Secure Shell (SSH). 2. Run CSR Generation Command Generate a private key and CSR by running the following command: Here is the&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[21],"ht-kb-tag":[97,255,1340,951,1108],"class_list":["post-25052","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ssl-certificates","ht_kb_tag-apache","ht_kb_tag-csr","ht_kb_tag-openssl","ht_kb_tag-ssl-certificates-and-website-security","ht_kb_tag-web-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Generate a CSR for Apache Web Server Using OpenSSL -<\/title>\n<meta name=\"description\" content=\"This article provides you with information on how to generate a CSR for an Apache Web Sever using OpenSSL. 1-grid Knowledge Base\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\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 CSR for Apache Web Server Using OpenSSL -\" \/>\n<meta property=\"og:description\" content=\"This article provides you with information on how to generate a CSR for an Apache Web Sever using OpenSSL. 1-grid Knowledge Base\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-30T14:47:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33027655897\/original\/R_bTih8w5rzAHTKa_YCLnOrBzoljC-rL-g.png?1562324384\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/\",\"name\":\"How to Generate a CSR for Apache Web Server Using OpenSSL -\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-02-02T15:03:05+00:00\",\"dateModified\":\"2023-08-30T14:47:45+00:00\",\"description\":\"This article provides you with information on how to generate a CSR for an Apache Web Sever using OpenSSL. 1-grid Knowledge Base\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Generate a CSR for Apache Web Server Using OpenSSL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate a CSR for Apache Web Server Using OpenSSL -","description":"This article provides you with information on how to generate a CSR for an Apache Web Sever using OpenSSL. 1-grid Knowledge Base","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Generate a CSR for Apache Web Server Using OpenSSL -","og_description":"This article provides you with information on how to generate a CSR for an Apache Web Sever using OpenSSL. 1-grid Knowledge Base","og_url":"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2023-08-30T14:47:45+00:00","og_image":[{"url":"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33027655897\/original\/R_bTih8w5rzAHTKa_YCLnOrBzoljC-rL-g.png?1562324384"}],"twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/","url":"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/","name":"How to Generate a CSR for Apache Web Server Using OpenSSL -","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-02-02T15:03:05+00:00","dateModified":"2023-08-30T14:47:45+00:00","description":"This article provides you with information on how to generate a CSR for an Apache Web Sever using OpenSSL. 1-grid Knowledge Base","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-generate-a-csr-for-apache-web-server-using-openssl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to Generate a CSR for Apache Web Server Using OpenSSL"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=25052"}],"version-history":[{"count":6,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25052\/revisions"}],"predecessor-version":[{"id":32837,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25052\/revisions\/32837"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=25052"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=25052"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=25052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}