{"id":611,"date":"2014-07-11T10:40:33","date_gmt":"2014-07-11T10:40:33","guid":{"rendered":"https:\/\/www.rapidsslonline.com\/blog\/?p=611"},"modified":"2022-04-22T01:09:48","modified_gmt":"2022-04-22T06:39:48","slug":"ssl-installation-guide-nginx-web-server","status":"publish","type":"post","link":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/","title":{"rendered":"SSL Installation Guide for Nginx Web Server"},"content":{"rendered":"<h2>SSL Certificates Installation Guideline for Nginx Web Server<\/h2>\n<p>First of all, create a \u2018Certificate Bundle\u2019 to get started with the procedure of SSL installation in Nginx. For creating the bundle, each certificate (SSL certificate, Intermediate certificate and Root certificate) needs to be in the PEM format.<\/p>\n<ul>\n<li>In a plain text editor, open each certificates.<\/li>\n<li>Now proceed by creating a new document in a plain text editor.<\/li>\n<\/ul>\n<ul>\n<li>Your SSL Certificate<\/li>\n<li>Intermediate SSL certificate<\/li>\n<li>Root SSL Certificate<\/li>\n<\/ul>\n<p>This completes your file and its format should be as follows:<br \/>\n&nbsp;<\/p>\n<pre>-----BEGIN CERTIFICATE-----\r\n#Your SSL Certificate#\r\n-----END CERTIFICATE-----\r\n-----BEGIN CERTIFICATE-----\r\n#Intermediate Certificate#\r\n-----END CERTIFICATE-----\r\n-----BEGIN CERTIFICATE-----\r\n#Root Certificate#\r\n-----END CERTIFICATE-----\r\n<\/pre>\n<p>&nbsp;<br \/>\nThis newly-created certificate bundle should be saved in a \u2018.crt\u2019 format.<br \/>\nAfter saving it properly, upload the certificate bundle along with the private key to a directory on the Nginx server.<br \/>\nAfter that, edit the Nginx virtual hosts file.<\/p>\n<p>For that, open the Nginx virtual host file for the website you intend to secure. In case you want your site to be accessible through both, secure (https) and non-secure (http) connections, you need to have a server module for each connection type.<\/p>\n<p>Now proceed by making a copy of the existing non-secure module and pasting it below the original. Add the lines in the format given below:<\/p>\n<pre>server{\r\nlisten 443;\r\nssl on;\r\nssl_certificate \/etc\/ssl\/your_domain.crt;\r\nssl_certificate_key \/etc\/ssl\/your_domain.key;\r\nserver_name your.domain.com;\r\naccess_log \/var\/log\/nginx\/nginx.vhost.access.log;\r\nerror_log \/var\/log\/nginx\/nginx.vhost.error.log;\r\nlocation \/ {\r\nroot \/home\/www\/public_html\/your.domain.com\/public\/;\r\nindex index.html;\r\n}\r\n}\r\n<\/pre>\n<p>&nbsp;<br \/>\nPlease note it is very important to make sure you adjust the file names so as to match your certificate files.<\/p>\n<ul>\n<li>Ssl_certificate should be your primary certificate which is combined with the root and intermediate certificate bundle created in previous steps. For example, your_domain.crt.<\/li>\n<li>When you generate the CSR, ssl_certificate_key should be the key file that is created.<\/li>\n<li>Now restart Nginx.<\/li>\n<\/ul>\n<pre>sudo \/etc\/init.d\/nginx restart<\/pre>\n<p>&nbsp;<\/p>\n<h3>NGINX Wildcard 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>NGINX Wildcard SSL Certificate allows multiple servers subdomains security with single SSL certificate.<\/p>\n<div style=\"text-align: right; float: right;\"><a class=\"more-link\" href=\"https:\/\/www.rapidsslonline.com\/ssl-types\/wildcard-ssl-certificates.aspx\">Buy NGINX Wildcard SSL at Inexpensive Prices<\/a><\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSL Certificates Installation Guideline for Nginx Web Server First of all, create a \u2018Certificate Bundle\u2019 to get started with the procedure of SSL installation in Nginx. For creating the bundle, &hellip; <span class=\"d-flex justify-content-end\"><a href=\"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/\" class=\"btn btn-blue\">Read More <span class=\"screen-reader-text\">SSL Installation Guide for Nginx Web Server<\/span><\/a><\/span><\/p>\n","protected":false},"author":10,"featured_media":645,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-611","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.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SSL Installation Guide for Nginx Web Server<\/title>\n<meta name=\"description\" content=\"The Easiest and Quickest Guide for SSL certificate Installation on Nginx Web Server from 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\/ssl-installation-guide-nginx-web-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SSL Installation Guide for Nginx Web Server\" \/>\n<meta property=\"og:description\" content=\"The Easiest and Quickest Guide for SSL certificate Installation on Nginx Web Server from RapidSSLOnline!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/\" \/>\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=\"2014-07-11T10:40:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-22T06:39:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2014\/07\/92132c62-smush-nginx-ssl-150x150.png\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\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: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=\"Adam Thompson\" \/>\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":"SSL Installation Guide for Nginx Web Server","description":"The Easiest and Quickest Guide for SSL certificate Installation on Nginx Web Server from 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\/ssl-installation-guide-nginx-web-server\/","og_locale":"en_US","og_type":"article","og_title":"SSL Installation Guide for Nginx Web Server","og_description":"The Easiest and Quickest Guide for SSL certificate Installation on Nginx Web Server from RapidSSLOnline!","og_url":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/","og_site_name":"RapidSSLOnline Blog","article_publisher":"https:\/\/www.facebook.com\/rsosslcertificates\/","article_published_time":"2014-07-11T10:40:33+00:00","article_modified_time":"2022-04-22T06:39:48+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2014\/07\/92132c62-smush-nginx-ssl-150x150.png","type":"image\/png"}],"author":"Adam Thompson","twitter_card":"summary_large_image","twitter_creator":"@rsossl","twitter_site":"@rsossl","twitter_misc":{"Written by":"Adam Thompson","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#article","isPartOf":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/"},"author":{"name":"Adam Thompson","@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/ab1f810704e5f52f23e62cf0a309fd56"},"headline":"SSL Installation Guide for Nginx Web Server","datePublished":"2014-07-11T10:40:33+00:00","dateModified":"2022-04-22T06:39:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/"},"wordCount":295,"image":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2014\/07\/92132c62-smush-nginx-ssl-150x150.png","articleSection":["SSL Certificate"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/","url":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/","name":"SSL Installation Guide for Nginx Web Server","isPartOf":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#primaryimage"},"image":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2014\/07\/92132c62-smush-nginx-ssl-150x150.png","datePublished":"2014-07-11T10:40:33+00:00","dateModified":"2022-04-22T06:39:48+00:00","author":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/#\/schema\/person\/ab1f810704e5f52f23e62cf0a309fd56"},"description":"The Easiest and Quickest Guide for SSL certificate Installation on Nginx Web Server from RapidSSLOnline!","breadcrumb":{"@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#primaryimage","url":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2014\/07\/92132c62-smush-nginx-ssl-150x150.png","contentUrl":"https:\/\/www.rapidsslonline.com\/blog\/wp-content\/uploads\/2014\/07\/92132c62-smush-nginx-ssl-150x150.png","width":150,"height":150,"caption":"SSL Installation Guide for Nginx Web Server"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rapidsslonline.com\/blog\/ssl-installation-guide-nginx-web-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rapidsslonline.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SSL Installation Guide for Nginx Web Server"}]},{"@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\/ab1f810704e5f52f23e62cf0a309fd56","name":"Adam Thompson","sameAs":["http:\/\/rapidsslonline.com"],"url":"https:\/\/www.rapidsslonline.com\/blog\/author\/adam-thompson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/posts\/611","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/comments?post=611"}],"version-history":[{"count":0,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/posts\/611\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/media\/645"}],"wp:attachment":[{"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/media?parent=611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/categories?post=611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rapidsslonline.com\/blog\/wp-json\/wp\/v2\/tags?post=611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}