{"id":2057,"date":"2017-11-30T10:43:12","date_gmt":"2017-11-30T16:13:12","guid":{"rendered":"https:\/\/www.rapidsslonline.com\/blog\/?p=2057"},"modified":"2019-05-09T03:35:17","modified_gmt":"2019-05-09T09:05:17","slug":"generate-csr-apache-openssl","status":"publish","type":"post","link":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/","title":{"rendered":"How to Generate a CSR Using Apache OpenSSL"},"content":{"rendered":"<h2>Step-by-step instructions for creating a Certificate Signing Request and Private Key<\/h2>\n<p>Need help creating a Certificate Signing Request (CSR) using OpenSSL commands on Apache? Good! You\u2019ve come to the right place. A year ago, I probably couldn\u2019t have helped you answer this question but good ol\u2019 Carl has learned a thing or two about SSL certificates, CSRs and hopefully even something <strong><a href=\"https:\/\/httpd.apache.org\/\">about Apache servers<\/a><\/strong>\u2014or else this last part might be kind of tough.<\/p>\n<p>Let\u2019s start with your CSR. A Certificate Signing Request acts as sort of a de facto application for your certificate. The Certificate Authority that\u2019s issuing the certificate will use the information contained in the CSR to fill out the certificate. That\u2019s why it\u2019s critical that every piece of information you put in your CSR is accurate. Any problem, even the tiniest grammatical miscalculation, can have catastrophic effects.<\/p>\n<p>Ok, so maybe not like end-of-the-world catastrophic. I just like a little bit of hyperbole. It\u2019s more of a \u201cthis was a waste of my time\u201d disaster. So that\u2019s my preface when you fill this CSR out, get it right. There\u2019s nothing worse than having to do it all over again.<\/p>\n<h2>How to Generate a CSR Using Apache OpenSSL<\/h2>\n<p>For starters, you\u2019ll need to have SSH access at server- and root-level permissions in order to generate your CSR and Private Key.<\/p>\n<ol>\n<li>Using Putty, connect to Apache Server SSH and login as root. Type the command below when prompted:<\/li>\n<\/ol>\n<pre><strong><em>openssl req -new -newkey rsa:2048 -nodes -keyout yourdomainn.key -out yourdomain.csr<\/em><\/strong><\/pre>\n<ol start=\"2\">\n<li>The command should create two new files: a private key and a CSR. Keep a copy of your private key secure and then complete the CSR.<\/li>\n<\/ol>\n<p><strong><em>Note<\/em><\/strong><em>: The private key is thusly named because it needs to be kept safely. A compromised private key means a compromised SSL certificate. <\/em><\/p>\n<p>You are now going to be asked to give some specific information:<\/p>\n<ul>\n<li>Country Name (2 letter code) [XX]:<\/li>\n<li>State or Province Name (full name) []:<\/li>\n<li>Locality Name (city) [Default City]:<\/li>\n<li>Organization Name (company) [Default Company Ltd]:<\/li>\n<li>Organizational Unit Name (department, division) []:<\/li>\n<li>Common Name (your name or your server\u2019s hostname) []:<\/li>\n<li>Email Address []:<\/li>\n<\/ul>\n<p>Congratulations! After filling out the required fields, your CSR will be saved and is now ready for the CA.<\/p>\n<h3>\u00a0Other Important Resources<\/h3>\n<ul>\n<li><strong><a href=\"https:\/\/www.rapidsslonline.com\/blog\/wildcard-ssl-csr-guide-for-apache\/\">How to Generate a WildCard SSL Certificate Signing Request (CSR) for Apache + Mod SSL + OpenSSL<\/a><\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Apache 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>Easy and quick issuance of Apache SSL Certificates. Protect a website through top DV SSL certificates in few minutes.<\/p>\n<div style=\"text-align: right; float: right;\"><a class=\"more-link\" href=\"https:\/\/www.rapidsslonline.com\/\">Buy SSL Certificates at Reliable Prices<\/a><\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step-by-step instructions for creating a Certificate Signing Request and Private Key Need help creating a Certificate Signing Request (CSR) using OpenSSL commands on Apache? Good! You\u2019ve come to the right &hellip; <span class=\"d-flex justify-content-end\"><a href=\"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/\" class=\"btn btn-blue\">Read More <span class=\"screen-reader-text\">How to Generate a CSR Using Apache OpenSSL<\/span><\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":1907,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-2057","post","type-post","status-publish","format-standard","has-post-thumbnail","category-ssl-certificate"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Generate a CSR Using Apache OpenSSL - RapidSSLonline<\/title>\n<meta name=\"description\" content=\"Step-by-step instructions for creating a Certificate Signing Request (CSR) and Private Key using Apache OpenSSL. The process explained by RapidSSLonline.\" \/>\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\/generate-csr-apache-openssl\/\" \/>\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 Using Apache OpenSSL - RapidSSLonline\" \/>\n<meta property=\"og:description\" content=\"Step-by-step instructions for creating a Certificate Signing Request (CSR) and Private Key using Apache OpenSSL. The process explained by RapidSSLonline.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/\" \/>\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=\"2017-11-30T16:13:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-09T09:05:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/07\/deep-root-analytics.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"475\" \/>\n\t<meta property=\"og:image:height\" content=\"207\" \/>\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: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=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate a CSR Using Apache OpenSSL - RapidSSLonline","description":"Step-by-step instructions for creating a Certificate Signing Request (CSR) and Private Key using Apache OpenSSL. The process explained by RapidSSLonline.","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\/generate-csr-apache-openssl\/","og_locale":"en_US","og_type":"article","og_title":"How to Generate a CSR Using Apache OpenSSL - RapidSSLonline","og_description":"Step-by-step instructions for creating a Certificate Signing Request (CSR) and Private Key using Apache OpenSSL. The process explained by RapidSSLonline.","og_url":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/","og_site_name":"RapidSSLOnline Blog","article_publisher":"https:\/\/www.facebook.com\/rsosslcertificates\/","article_published_time":"2017-11-30T16:13:12+00:00","article_modified_time":"2019-05-09T09:05:17+00:00","og_image":[{"width":475,"height":207,"url":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/07\/deep-root-analytics.jpg","type":"image\/jpeg"}],"author":"Patrick Nohe","twitter_card":"summary_large_image","twitter_creator":"@rsossl","twitter_site":"@rsossl","twitter_misc":{"Written by":"Patrick Nohe","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#article","isPartOf":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/"},"author":{"name":"Patrick Nohe","@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/3a1975e808f88c1245fd96096b85debb"},"headline":"How to Generate a CSR Using Apache OpenSSL","datePublished":"2017-11-30T16:13:12+00:00","dateModified":"2019-05-09T09:05:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/"},"wordCount":423,"commentCount":0,"image":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/07\/deep-root-analytics.jpg","articleSection":["SSL Certificate"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/","url":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/","name":"How to Generate a CSR Using Apache OpenSSL - RapidSSLonline","isPartOf":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#primaryimage"},"image":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/07\/deep-root-analytics.jpg","datePublished":"2017-11-30T16:13:12+00:00","dateModified":"2019-05-09T09:05:17+00:00","author":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/3a1975e808f88c1245fd96096b85debb"},"description":"Step-by-step instructions for creating a Certificate Signing Request (CSR) and Private Key using Apache OpenSSL. The process explained by RapidSSLonline.","breadcrumb":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#primaryimage","url":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/07\/deep-root-analytics.jpg","contentUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2017\/07\/deep-root-analytics.jpg","width":475,"height":207,"caption":"Solve it Yourself: Your Certificate Is Not Trusted Error"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rapidsslonline.com\/blog\/generate-csr-apache-openssl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rapidsslonline.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Generate a CSR Using Apache OpenSSL"}]},{"@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\/2057","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=2057"}],"version-history":[{"count":0,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/posts\/2057\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/media\/1907"}],"wp:attachment":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/media?parent=2057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/categories?post=2057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/tags?post=2057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}