{"id":1238,"date":"2019-01-02T12:28:20","date_gmt":"2019-01-02T12:28:20","guid":{"rendered":"https:\/\/www.sslrenewals.com\/blog\/?p=1238"},"modified":"2021-11-25T08:33:55","modified_gmt":"2021-11-25T08:33:55","slug":"how-to-generate-csr-install-ssl-nginx-server","status":"publish","type":"post","link":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server","title":{"rendered":"How to Generate CSR and Install SSL on NGINX Server"},"content":{"rendered":"<h2>Quick Tips to Generate CSR and SSL Certificate Installation Process for NGINX Server<\/h2>\n<p>This article is all about the simplified procedure of generating the CSR (Certificate Signing Request) and installing the SSL on Nginx Server without causing any error or mistake. Before we start with both the processes, please be sure to buy or renew an SSL Certificate from a trusted certificate authority (CA).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1240\" src=\"https:\/\/www.sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx-ssl-certificate.jpg\" alt=\"nginx ssl certificate\" width=\"494\" height=\"256\" srcset=\"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx-ssl-certificate.jpg 1008w, https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx-ssl-certificate-300x155.jpg 300w, https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx-ssl-certificate-768x398.jpg 768w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/p>\n<p>Before we go further, make sure to save all the SSL Certificate files provided by the Certificate Authority to a specific location.<\/p>\n<h3>Step1: NGINX CSR Generation with OpenSSL command<\/h3>\n<p>To generate CSR and Private key on your NGINX server, please perform the following steps.<\/p>\n<ul>\n<li>Use Secure Shell or SSH Terminal to login into your server<\/li>\n<li>Now execute the following OpenSSL command<\/li>\n<\/ul>\n<pre><em>openssl req \u2013new \u2013newkey rsa:2048 \u2013nodes \u2013keyout domain-name.key \u2013out domain-name.csr<\/em><\/pre>\n<ul>\n<li>Here you need to add the below-requested information turn by turn.<\/li>\n<\/ul>\n<ol style=\"padding-left:30px\">\n<li><strong>Common Name:<\/strong> The name of your base domain<\/li>\n<li><strong>Organization:<\/strong> The name of your Business\/Organization<\/li>\n<li><strong>Organization Unit:<\/strong> The Unit name of your business<\/li>\n<li><strong>City or Locality:<\/strong> The name of your City<\/li>\n<li><strong>State:<\/strong> The name of your state<\/li>\n<li><strong>Country:<\/strong> Two letter country code<\/li>\n<li><strong>Passphrase:<\/strong> This is an optional request (you only need to add if you wish to secure your CSR with a password).<\/li>\n<\/ol>\n<ul>\n<li>At the end of the above process, you will have the <strong>CSR<\/strong> and <strong>Private Key<\/strong> on your screen.<\/li>\n<li>Now, copy the encrypted data of the CSR <strong><em>&#8212;&#8211;BEGIN NEW CERTIFICATE REQUEST&#8212;&#8211; and &#8212;&#8211;END NEW CERTIFICATE REQUEST&#8212;&#8211;<\/em><\/strong> and paste into a new Text file, and give a name as domain-name.csr.<\/li>\n<li>Following the same way, save the Private Key by giving a file name as domain-name.key.<\/li>\n<li>Now move to the next step to install the SSL Certificate.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Step2: NGINX SSL Certificate Installation<\/h3>\n<p>Perform following steps for the successful SSL Certificate and Intermediate Certificate installation on NGINX Server.<\/p>\n<ul>\n<li>As per the above explanation, we have requested to save all the SSL files provided by the CA into a specific location.<\/li>\n<li>Now run following command to concatenate both files into a single .pem file or a bundle.crt file (NGINX will accept both the file formats).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<pre><em>cat domain-name.crt certificate-authority.crt &gt;&gt; bundle.crt<\/em><\/pre>\n<ul>\n<li>Here, <strong>domain-name.crt<\/strong> is your Server Certificate, and <strong>certificate-authority.crt<\/strong> is the Intermediate Certificate.<\/li>\n<li>Edit the <strong>Virtual Host<\/strong> File\n<ul style=\"padding-left:30px\">\n<li>Open the <strong>Nginx<\/strong> <strong>virtual host<\/strong> file<\/li>\n<li>At the end of the file add the following command<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<pre><em>server {\nlisten&nbsp;&nbsp; 443;\nssl&nbsp;&nbsp;&nbsp; on;\nssl_certificate&nbsp;&nbsp;&nbsp; \/etc\/ssl\/domain-name.pem; (or bundle.crt)\nssl_certificate_key&nbsp;&nbsp;&nbsp; \/etc\/ssl\/domain-name.key;\nserver_name domain-name.com;\naccess_log \/var\/log\/nginx\/nginx.vhost.access.log;\nerror_log \/var\/log\/nginx\/nginx.vhost.error.log;\nlocation \/ {\nroot&nbsp;&nbsp; \/home\/www\/public_html\/domain-name.com\/public\/;\nindex &nbsp;index.html;\n}<\/em><\/pre>\n<p>Note: Here, <strong>ssl_certificate&nbsp;&nbsp;&nbsp; \/etc\/ssl\/domain-name.pem; (or bundle.crt) <\/strong>is the location of <strong>.prm<\/strong> or .<strong>crt<\/strong> file concatenated through the previous step, and <strong>ssl_certificate_key&nbsp;&nbsp;&nbsp; \/etc\/ssl\/domain-name.key<\/strong> is the location of your private key.<\/p>\n<ul>\n<li>Save the Virtual Host File and restart the NGINX server using the following<\/li>\n<\/ul>\n<pre><em>sudo \/etc\/init.d\/nginx restart<\/em><\/pre>\n<p>Once you complete the SSL installation process, you can verify the installation using our free SSL Checker Tool.<\/p>\n<p><strong>Conclusion:<\/strong> Finally, the installation of the generated CSR with the private key and the SSL Certificate along with the Intermediate Certificate is carried out in your NGINX Server. Your website is now secured and ready to run with the HTTPS protocol. Don\u2019t forget to redirect the HTTP traffic to HTTPS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick Tips to Generate CSR and SSL Certificate Installation Process for NGINX Server This article is all about the simplified procedure of generating the CSR (Certificate Signing Request) and installing the SSL on Nginx Server without causing any error or mistake. Before we start with both the processes, please be sure to buy or renew an SSL Certificate from a trusted certificate authority (CA). Before we go further, make sure to save all the SSL Certificate files provided by the Certificate Authority to a specific location. Step1: NGINX CSR Generation <a href=\"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server\" class=\"more-link\">Continue Reading<\/a><\/p>\n","protected":false},"author":11,"featured_media":1290,"comment_status":"open","ping_status":"open","sticky":false,"template":"fullwidth-post.php","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[146],"tags":[],"class_list":["post-1238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ssl-installation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Generate CSR and Install SSL Certificate on NGINX Server<\/title>\n<meta name=\"description\" content=\"Quick and Easy Steps: Know how to generate CSR and Install SSL certificate on NGINX server in minutes without doing any mistake or error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server\" \/>\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 and Install SSL Certificate on NGINX Server\" \/>\n<meta property=\"og:description\" content=\"Quick and Easy Steps: Know how to generate CSR and Install SSL certificate on NGINX server in minutes without doing any mistake or error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server\" \/>\n<meta property=\"og:site_name\" content=\"SSLRenewals Blog - SSL Certificates News | SSL Articles\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-02T12:28:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-25T08:33:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Adam Thompson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adam Thompson\" \/>\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:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server\"},\"author\":{\"name\":\"Adam Thompson\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#\\\/schema\\\/person\\\/5d8f5aee08b2733bdbf2933439da269e\"},\"headline\":\"How to Generate CSR and Install SSL on NGINX Server\",\"datePublished\":\"2019-01-02T12:28:20+00:00\",\"dateModified\":\"2021-11-25T08:33:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server\"},\"wordCount\":517,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/nginx.png\",\"articleSection\":[\"SSL Installation\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server\",\"name\":\"How to Generate CSR and Install SSL Certificate on NGINX Server\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/nginx.png\",\"datePublished\":\"2019-01-02T12:28:20+00:00\",\"dateModified\":\"2021-11-25T08:33:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#\\\/schema\\\/person\\\/5d8f5aee08b2733bdbf2933439da269e\"},\"description\":\"Quick and Easy Steps: Know how to generate CSR and Install SSL certificate on NGINX server in minutes without doing any mistake or error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#primaryimage\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/nginx.png\",\"contentUrl\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/nginx.png\",\"width\":200,\"height\":200,\"caption\":\"nginx icon\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/how-to-generate-csr-install-ssl-nginx-server#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sslrenewals.com\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Generate CSR and Install SSL on NGINX Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/\",\"name\":\"SSLRenewals Blog - SSL Certificates News | SSL Articles\",\"description\":\"SSLRenewals Blog: We publish SSL Certificate News, SSL Articles for website security from RapidSSL, Symantec (VeriSign), GeoTrust, Thawte and Comodo.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#\\\/schema\\\/person\\\/5d8f5aee08b2733bdbf2933439da269e\",\"name\":\"Adam Thompson\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/author\\\/adam\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate CSR and Install SSL Certificate on NGINX Server","description":"Quick and Easy Steps: Know how to generate CSR and Install SSL certificate on NGINX server in minutes without doing any mistake or error.","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:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server","og_locale":"en_US","og_type":"article","og_title":"How to Generate CSR and Install SSL Certificate on NGINX Server","og_description":"Quick and Easy Steps: Know how to generate CSR and Install SSL certificate on NGINX server in minutes without doing any mistake or error.","og_url":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server","og_site_name":"SSLRenewals Blog - SSL Certificates News | SSL Articles","article_published_time":"2019-01-02T12:28:20+00:00","article_modified_time":"2021-11-25T08:33:55+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png","type":"image\/png"}],"author":"Adam Thompson","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adam Thompson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#article","isPartOf":{"@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server"},"author":{"name":"Adam Thompson","@id":"https:\/\/sslrenewals.com\/blog\/#\/schema\/person\/5d8f5aee08b2733bdbf2933439da269e"},"headline":"How to Generate CSR and Install SSL on NGINX Server","datePublished":"2019-01-02T12:28:20+00:00","dateModified":"2021-11-25T08:33:55+00:00","mainEntityOfPage":{"@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server"},"wordCount":517,"commentCount":0,"image":{"@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#primaryimage"},"thumbnailUrl":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png","articleSection":["SSL Installation"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server","url":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server","name":"How to Generate CSR and Install SSL Certificate on NGINX Server","isPartOf":{"@id":"https:\/\/sslrenewals.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#primaryimage"},"image":{"@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#primaryimage"},"thumbnailUrl":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png","datePublished":"2019-01-02T12:28:20+00:00","dateModified":"2021-11-25T08:33:55+00:00","author":{"@id":"https:\/\/sslrenewals.com\/blog\/#\/schema\/person\/5d8f5aee08b2733bdbf2933439da269e"},"description":"Quick and Easy Steps: Know how to generate CSR and Install SSL certificate on NGINX server in minutes without doing any mistake or error.","breadcrumb":{"@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#primaryimage","url":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png","contentUrl":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png","width":200,"height":200,"caption":"nginx icon"},{"@type":"BreadcrumbList","@id":"https:\/\/sslrenewals.com\/blog\/how-to-generate-csr-install-ssl-nginx-server#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sslrenewals.com\/blog"},{"@type":"ListItem","position":2,"name":"How to Generate CSR and Install SSL on NGINX Server"}]},{"@type":"WebSite","@id":"https:\/\/sslrenewals.com\/blog\/#website","url":"https:\/\/sslrenewals.com\/blog\/","name":"SSLRenewals Blog - SSL Certificates News | SSL Articles","description":"SSLRenewals Blog: We publish SSL Certificate News, SSL Articles for website security from RapidSSL, Symantec (VeriSign), GeoTrust, Thawte and Comodo.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sslrenewals.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sslrenewals.com\/blog\/#\/schema\/person\/5d8f5aee08b2733bdbf2933439da269e","name":"Adam Thompson","url":"https:\/\/sslrenewals.com\/blog\/author\/adam"}]}},"jetpack_featured_media_url":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2019\/01\/nginx.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/posts\/1238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/comments?post=1238"}],"version-history":[{"count":0,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/media\/1290"}],"wp:attachment":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/tags?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}