{"id":727,"date":"2017-03-24T01:06:26","date_gmt":"2017-03-24T01:06:26","guid":{"rendered":"https:\/\/www.thesslstore.com\/knowledgebase\/?post_type=ht_kb&#038;p=727"},"modified":"2017-09-26T10:37:46","modified_gmt":"2017-09-26T10:37:46","slug":"nginx-ssl-installation","status":"publish","type":"ht_kb","link":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/","title":{"rendered":"How to Install an SSL\/TLS Certificate In Nginx (OpenSSL)"},"content":{"rendered":"<p>The following instructions will guide you through the SSL installation process on Nginx. If you have more than one server or device, you will need to install the certificate on each server or device you need to secure. If you still have not generated your certificate and completed the validation process, reference our <a href=\"\/knowledgebase\/ssl-generate\/\">CSR Generation Instructions<\/a> and disregard the steps below.<\/p>\n<h2>What You&#8217;ll Need<\/h2>\n<h3>1. Your server certificate<\/h3>\n<p>This is the certificate you received from the CA for your domain. You may have been sent this via email. If not, you can download it by visiting your Account Dashboard and clicking on your order.<\/p>\n<h3>2. Your intermediate certificates<\/h3>\n<p>These files allow the devices connecting to your server to identify the issuing CA. There may be more than one of these certificates. If you got your certificate in a ZIP folder, it should also contain the Intermediate certificate(s), which is sometimes referred to as a CA Bundle. If not, <a href=\"\/knowledgebase\/ssl-support\/ca-bundle\/\">download the appropriate CA Bundle for your certificate.<\/a><\/p>\n<h3>3. Your private key<\/h3>\n<p>This file should be on your server, or in your possession if you generated your CSR from a free generator tool. On certain platforms, such as Microsoft IIS, the private key is not immediately visible to you but the server is keeping track of it.<\/p>\n<h2>Installation Instructions<\/h2>\n<h3>1. Copy your Certificate Files<\/h3>\n<p>Copy the <strong>Certificate Files<\/strong> into the proper directory on your server.<\/p>\n<p><strong><em>Note:<\/em><\/strong><em> For better security, make them readable by root only.<\/em><\/p>\n<h3>2. Link your files<\/h3>\n<p>You need to link the two certificates (or &#8220;Concatenate&#8221; them) into a single file by entering the command below:<\/p>\n<pre>cat your_domain_name.crt Intermediate.crt &gt;&gt; bundle.crt<\/pre>\n<h3>3. Edit your virtual host file<\/h3>\n<p>Edit your Nginx virtual host file. Copy the existing server module (the non-secure one) and paste it below the original <strong><em>before<\/em><\/strong> adding the following lines in bold:<\/p>\n<pre>server {\r\n  <strong>listen443;\r\n    ssl on;\r\n    ssl_certificate \/etc\/ssl\/your_domain_name.pem; <\/strong><em>(or  bundle.crt)<\/em>\r\n  <strong>ssl_certificate_key \/etc\/ssl\/your_domain_name.key;<\/strong>\r\n    server_name your.domain.com;\r\n    access_log \/var\/log\/nginx\/nginx.vhost.access.log;\r\n    error_log \/var\/log\/nginx\/nginx.vhost.error.log;\r\n    location \/ {\r\n    root  \/home\/www\/public_html\/your.domain.com\/public\/;\r\n    index  index.html;\r\n    }\r\n    }<\/pre>\n<h3>4. Restart Nginx<\/h3>\n<p>Restart Nginx using the command line below:<\/p>\n<pre>sudo \/etc\/init.d\/nginx restart<\/pre>\n<p>Congratulations! You&#8217;ve successfully installed your SSL certificate! To check your work, visit the website in your browser at <em><u>https:\/\/yourdomain.tld<\/u><\/em> and view the certificate\/site information to see if HTTPS\/SSL is working properly. Remember, you may need to restart your server for changes to take effect.<\/p>\n<p>To check your server&#8217;s configurations more thoroughly, use our <a href=\"\/ssltools\/ssl-checker.php\">SSL Checker Tool<\/a> or contact our Customer Experience Department for additional assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following instructions will guide you through the SSL installation process on Nginx. If you have more than one server or device, you will need to install the certificate on each server or device you need to secure. If you still have not generated your certificate and completed the validation&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[24],"ht-kb-tag":[],"class_list":["post-727","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ssl-install"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122<\/title>\n<meta name=\"description\" content=\"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.\" \/>\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.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122\" \/>\n<meta property=\"og:description\" content=\"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thesslstoredotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2017-09-26T10:37:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122\" \/>\n<meta name=\"twitter:description\" content=\"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n<meta name=\"twitter:site\" content=\"@thesslstore\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122","description":"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.","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.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/","og_locale":"en_US","og_type":"article","og_title":"How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122","og_description":"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.","og_url":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/","og_site_name":"Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/thesslstoredotcom","article_modified_time":"2017-09-26T10:37:46+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122","twitter_description":"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.","twitter_image":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","twitter_site":"@thesslstore","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/","name":"How to Install an SSL\/TLS Certificate In Nginx - The SSL Store\u2122","isPartOf":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website"},"datePublished":"2017-03-24T01:06:26+00:00","dateModified":"2017-09-26T10:37:46+00:00","description":"Make the SSL\/TLS Certificate Installation process easy by following our guide for installing SSL\/TLS Certificate on Nginx.","breadcrumb":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/ssl-install\/nginx-ssl-installation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thesslstore.com\/knowledgebase\/"},{"@type":"ListItem","position":2,"name":"How to Install an SSL\/TLS Certificate In Nginx (OpenSSL)"}]},{"@type":"WebSite","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","name":"Knowledge Base","description":"TheSSLstore","publisher":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thesslstore.com\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization","name":"The SSL Store\u2122","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","contentUrl":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","width":300,"height":300,"caption":"The SSL Store\u2122"},"image":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/thesslstoredotcom","https:\/\/x.com\/thesslstore","https:\/\/www.linkedin.com\/company\/the-ssl-store","https:\/\/www.youtube.com\/user\/thesslstore"]}]}},"_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/727\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=727"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}