{"id":5476,"date":"2022-04-21T09:40:44","date_gmt":"2022-04-21T09:40:44","guid":{"rendered":"https:\/\/www.esds.co.in\/kb\/?p=5476"},"modified":"2022-04-21T09:40:45","modified_gmt":"2022-04-21T09:40:45","slug":"how-to-generate-csr-with-a-new-key-on-the-command-line","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/","title":{"rendered":"How to generate CSR with a new KEY on the command line"},"content":{"rendered":"\n<p><strong>1. Use the below command in the <a href=\"https:\/\/www.esds.co.in\/blog\/advantages-and-disadvantages-of-client-application-server\/\">application server<\/a><\/strong><\/p>\n\n\n\n<p><em>openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr<\/em><\/p>\n\n\n\n<p><strong>2. Updated below details as required<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"609\" height=\"324\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/1-1.png\" alt=\"How to generate SCR with a new KEY on the command line\" class=\"wp-image-5478\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/1-1.png 609w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/1-1-300x160.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/figure><\/div>\n\n\n\n<p><strong>3. After updating you will get the CSR file and Key file<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"609\" height=\"174\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/2.png\" alt=\"How to generate SCR with a new KEY on the command line 1\" class=\"wp-image-5479\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/2.png 609w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/2-300x86.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/figure><\/div>\n\n\n\n<p><strong>4. Enter the command: cat server.csr<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"609\" height=\"313\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/3.png\" alt=\"How to generate SCR with a new KEY on the command line 2\" class=\"wp-image-5480\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/3.png 609w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/3-300x154.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/figure><\/div>\n\n\n\n<p><strong>5. Next, cat server.key<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"570\" height=\"447\" src=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/4.png\" alt=\"How to generate SCR with a new KEY on the command line  3\" class=\"wp-image-5481\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/4.png 570w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/4-300x235.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Use the below command in the application server openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr 2. Updated below details as required 3. After updating you will get the CSR file and Key file 4. Enter the command: cat server.csr 5. Next, cat server.key<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1047],"tags":[1206,1207],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to generate CSR with a new KEY on the command line | ESDS<\/title>\n<meta name=\"description\" content=\"No, you can&#039;t export the private key from the CSR since it doesn&#039;t include one. You&#039;ll need another file with a private key to extract the private key, and if you have that, you won&#039;t need the CSR.\" \/>\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.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to generate CSR with a new KEY on the command line | ESDS\" \/>\n<meta property=\"og:description\" content=\"No, you can&#039;t export the private key from the CSR since it doesn&#039;t include one. You&#039;ll need another file with a private key to extract the private key, and if you have that, you won&#039;t need the CSR.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-21T09:40:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-21T09:40:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/1-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\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\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2022\/04\/1-1.png\",\"width\":609,\"height\":324},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/\",\"name\":\"How to generate CSR with a new KEY on the command line | ESDS\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/#primaryimage\"},\"datePublished\":\"2022-04-21T09:40:44+00:00\",\"dateModified\":\"2022-04-21T09:40:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/4344af4dd22cdad2ba4c1de386afe0bf\"},\"description\":\"No, you can't export the private key from the CSR since it doesn't include one. You'll need another file with a private key to extract the private key, and if you have that, you won't need the CSR.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/how-to-generate-csr-with-a-new-key-on-the-command-line\/\",\"name\":\"How to generate CSR with a new KEY on the command line\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/4344af4dd22cdad2ba4c1de386afe0bf\",\"name\":\"Niteesha Birari\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93d45d75be857b4cc9726661e8429b97?s=96&d=mm&r=g\",\"caption\":\"Niteesha Birari\"},\"description\":\"Niteesha is a Senior Specialist at ESDS, working closely with the Governance Team to drive innovation, efficiency, and compliance across projects. With a strong passion for cloud technologies and digital innovation, she plays a key role in designing and maintaining the organization\\u2019s information architecture, ensuring seamless data accessibility and system efficiency. Known for her sharp analytical mindset and clear communication, Niteesha has extensive experience in crafting high-quality technical documentation\\u2014including articles, user guides, and service manuals\\u2014that simplify complex software products and services for diverse audiences.\",\"sameAs\":[\"https:\/\/esds.co.in\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/5476"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=5476"}],"version-history":[{"count":4,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/5476\/revisions"}],"predecessor-version":[{"id":5485,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/5476\/revisions\/5485"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=5476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=5476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=5476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}