{"id":2525,"date":"2015-11-06T14:29:32","date_gmt":"2015-11-06T14:29:32","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=2525"},"modified":"2023-01-19T13:47:00","modified_gmt":"2023-01-19T10:47:00","slug":"apache-csr-how-to-generate-it","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/","title":{"rendered":"Apache CSR: how to  generate it?"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu,sans-serif;\">For certificate registration you must generate the Apache CSR. <\/span><!--more--><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Step 1. <\/strong>You need OpenSSL to generate the Apache CSR and install the certificate. If this program is not installed on your server, you have do it.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Step 2.<\/strong> You have to create a Private Key also, it is called RSA key for Apache web server. You can do it in the correspondent directory:<\/span><\/p>\n<pre lang=\"php\"> cd \/apacheserverroot\/conf\/ssl.key<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">where ssl.key &#8211; key directory by default.<\/span><br \/>\n<span style=\"font-family: Ubuntu,sans-serif;\">If you use a different path, then navigate to the directory where you stored private keys.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Step 3.<\/strong> To create the Private Key file, type the following command:<\/span><\/p>\n<pre lang=\"php\">openssl genrsa -des3 -out yourdomain.key 2048<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><br \/>\nIn this step you will be prompted to enter a password to access the key. This password you will have to enter each time you start the web server. Don&#8217;t forget the password because if you lose the access to the Private Key you have to order a new certificate.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><br \/>\nYou can also use the Private Key without encryption, if you do not want to enter your password each time you start the web server, but it may affect the security of the data:<\/span><\/p>\n<pre lang=\"php\"> openssl genrsa -out yourdomain.key 2048<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><br \/>\nWe recommend to use the name of your domain as the name of the Private Key. This will be especially useful if you have multiple domains with certificates.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Step 4. <\/strong>To generate the CSR request using RSA key type the command:<\/span><\/p>\n<pre lang=\"php\"> openssl req -new -key yourdomain.key -out yourdomain.csr<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">If <strong>on Step 3<\/strong> You choosed key file generating with a password, you have to enter it to generate the CSR.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Step 5.<\/strong> To generate the CSR request, you have to fill the following fields: (use only Latin and do not use: &lt; &gt; ~ ! @ # $ % ^ * \/ \\ ( ) ? . , &amp;):<\/span><\/p>\n<pre lang=\"php\">Common Name\nOrganization\nOrganization Unit\nCity or Locality\nState or Province\nCountry\n<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Common Name <\/strong>&#8211; this is the full name of your website without a protocol.Eg., <span style=\"font-family: Ubuntu Mono,monospace;\">www.unihost.com<\/span> or <span style=\"font-family: Ubuntu Mono,monospace;\">unihost.com.<\/span> Almost all certificates (except EV SSL) protect both variants of writing the domain name by default.<br \/>\n<strong>Organization <\/strong>&#8211; the name of the organization according to the Charter of the organization. As a rule, this field is necessary for the validation of the organization. If you order a certificate with domain validation, you may type the domain name in this field.<br \/>\n<strong>Organization Unit <\/strong>&#8211; the Department name. Eg., it is enough to specify &#8220;IT&#8221;.<br \/>\n<strong>City or Locality<\/strong> -the name of city or locality where your organization or private person is registered.<br \/>\n<strong>State or Province<\/strong> &#8211; the name of state or province where your organization\/private person is registered. If there is none, you can enter oce more the city name.<br \/>\n<strong>Country<\/strong> &#8211; the country name, type it as an ISO code, for example, GB &#8211; Greate Britain, US &#8211; USA etc. <\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">We also recommend to specify the e-mail address relevant to the domain (located on a domain or is the administrative), and accessable for you. The email with a link to confirm the certificate will be sent later to this address. You have to follow the link to activate the domain verification and certificate registration.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">Leave the password field empty (press Enter).<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">To check the CSR code use the following command:<\/span><\/p>\n<pre lang=\"php\">openssl req -noout -text -in yourdomain.csr<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\"><strong>Step 7.<\/strong> Copy the CSR request including tags BEGIN \u0438 END (in a field in the order form on our website).<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">Do not forget to save the Private Key copy! If you lose this file, you will have to odred the certificate again.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">To view the contents of your Private Key use the command:<\/span><\/p>\n<pre lang=\"php\">openssl rsa -noout -text -in yourdomain.key<\/pre>\n<p><span style=\"font-family: Ubuntu,sans-serif;\">The Private Key must start from <strong>&#8212;&#8211;BEGIN RSA PRIVATE KEY&#8212;&#8211;<\/strong> tag and end with \u0438 <strong> &#8212;&#8211;END RSA PRIVATE KEY&#8212;&#8211;<\/strong> tag.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For certificate registration you must generate the Apache CSR.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166],"tags":[254,447,123,122],"class_list":["post-2525","post","type-post","status-publish","format-standard","hentry","category-08-ssl","tag-administrator-password","tag-apache-2","tag-apache","tag-csr"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apache CSR: how to generate it? - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"Detailed instructions for easy generating of Apache CSR code that is required for ordering security certificate SSL.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache CSR: how to generate it? - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"Detailed instructions for easy generating of Apache CSR code that is required for ordering security certificate SSL.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-06T14:29:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:47:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Apache CSR: how to generate it?\",\"datePublished\":\"2015-11-06T14:29:32+00:00\",\"dateModified\":\"2023-01-19T10:47:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\"},\"wordCount\":574,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"keywords\":[\"administrator password\",\"Apache\",\"Apache\",\"CSR\"],\"articleSection\":[\"08. SSL certificates\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\",\"url\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\",\"name\":\"Apache CSR: how to generate it? - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"datePublished\":\"2015-11-06T14:29:32+00:00\",\"dateModified\":\"2023-01-19T10:47:00+00:00\",\"description\":\"Detailed instructions for easy generating of Apache CSR code that is required for ordering security certificate SSL.\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Apache CSR: how to generate it?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache CSR: how to generate it? - Unihost.FAQ","description":"Detailed instructions for easy generating of Apache CSR code that is required for ordering security certificate SSL.","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:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/","og_locale":"en_US","og_type":"article","og_title":"Apache CSR: how to generate it? - Unihost.FAQ","og_description":"Detailed instructions for easy generating of Apache CSR code that is required for ordering security certificate SSL.","og_url":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2015-11-06T14:29:32+00:00","article_modified_time":"2023-01-19T10:47:00+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Apache CSR: how to generate it?","datePublished":"2015-11-06T14:29:32+00:00","dateModified":"2023-01-19T10:47:00+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/"},"wordCount":574,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":["administrator password","Apache","Apache","CSR"],"articleSection":["08. SSL certificates"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/","url":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/","name":"Apache CSR: how to generate it? - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2015-11-06T14:29:32+00:00","dateModified":"2023-01-19T10:47:00+00:00","description":"Detailed instructions for easy generating of Apache CSR code that is required for ordering security certificate SSL.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/apache-csr-how-to-generate-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"Apache CSR: how to generate it?"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=2525"}],"version-history":[{"count":3,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2525\/revisions"}],"predecessor-version":[{"id":2529,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2525\/revisions\/2529"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=2525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=2525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=2525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}