• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » SSL Grade Optimization Tweak For Rackspace Cloud Server

By Abhishek Ghosh August 31, 2014 6:40 pm Updated on August 31, 2014

SSL Grade Optimization Tweak For Rackspace Cloud Server

Advertisement

Here are the tweaks for SSL Grade Optimization for Rackspace Cloud Server for a typical Nginx web server. We have also explained the terms. We are writing as SSL Grade Optimization Tweak For Rackspace Cloud Server but actually it is TLS Grade Optimization Tweak For Rackspace Cloud Server because we now use TLS not SSL. If you are not sure about SSL/TLS things, first read our guide to determine which SSL certificate you need. Any Quick SSL will work fine for developmental purpose, but without better certificate, Grade can get decreased in some third party test.

 

The Need For SSL Grade Optimization Tweak For Rackspace Cloud Server

 

So we are going to follow this guide Install WordPress with Nginx on Rackspace Cloud Server or something closer you read somewhere, it really does not matter. We can easily add this server as a node behind a load balancer and server HTTPS pages, right? But this trick will fail to get A+ Grade or kind of same on most SSL/TLS cert testing tools. Thats for internal usage. For external and public usage you need another server working as loadbalancer in front or the server in front. Later is least costly and requires lesser technical expatriation.

 

SSL Grade Optimization Tweak For Rackspace Cloud Server

 

This is valid for 2 GB (minimum) instance on Rackspace Cloud only. You can use the settings for other plain web hosts but you might need real tweaks. First, keep the load balancer (if you have any) and serve HTTPS pages in the way we commonly do – by adding the certs on loadbalancer. We will debug by using the load balancer – you will add the same server’s port 443 and set port 80 to disabled to test. Else you can check with bare IP. As there will be nothing at the end (you will remove the loadbalancer) you must take care of your server.

Advertisement

---

We recommend to use a dev setup to test. Just for example, on this Test we scored A+ :

Vim
1
https://www.ssllabs.com/ssltest/analyze.html?d=thecustomizewindows.com

SSL Grade Optimization Tweak For Rackspace Cloud Server

This is absolutely like our page speed optimization. By the way, all cache plugins, CDN should be off. Otherwise it will become difficult to debug. WordPress throw lot of Errors with SSL and Nginx. You can not apply these tricks for another web host. They might not solve Rackspace specific settings.

 

SSL Grade Optimization Tweak For Rackspace Cloud Server : After SSH

 

Our need to work is with only this file :

Vim
1
/etc/nginx/sites-available/default

We have a way to do a config test for Nginx instead of directly reloading the wrong settings :

Vim
1
2
nginx -t
# test all files and return errors and warnings locations

There are lot terminologies on that test page :

Server Key and Certificate : We will do here.

Additional Certificates (if supplied) : We will do here.

Certification Paths : We will do here.

Protocols : We will do here.

Cipher Suites : We will do here.

Handshake Simulation : All are clickable hyperlinks, you can click to optimize more.

Protocol Details : We will do here.

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# HTTPS server
#
server {
        listen 443 ssl spdy;
        keepalive_timeout   70;
        # change
        server_name thecustomizewindows.com;
        root /usr/share/nginx/html;
        index index.php index.html index.htm;
        ssl off;
        access_log off;
 
        # certs sent to the client are concatenated in ssl_certificate
        # change
        ssl_certificate /etc/nginx/ssl/thecustomizewindows.com.crt;
        # change
        ssl_certificate_key /etc/nginx/ssl/thecustomizewindows.com.key;
 
        # Diffie-Hellman parameter for DHE cipher suites
        ssl_dhparam /etc/nginx/ssl/dhparam.pem;
 
        ssl_session_timeout 5m;
        ssl_session_cache shared:NginxCache123:50m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 
        ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK';
        ssl_prefer_server_ciphers on;
 
        # Enable for HSTS
        add_header Strict-Transport-Security max-age=15768000;
 
        # OCSP Stapling
        # fetch OCSP records from URL in ssl_certificate and cache them
        ssl_stapling on;
        ssl_stapling_verify on;
 
        # verify chain of trust
        # change
       ssl_trusted_certificate /etc/nginx/ssl/signed_cert_plus_intermediate.crt;
 
        resolver 8.8.8.8 8.8.4.4;
        location ~ \.php$ {
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=101M";
                fastcgi_index index.php;
                include fastcgi_params;
        }
       location / {
               try_files $uri $uri/ /index.php;
       }

First create a directory at /etc/nginx/ssl/ by :

Vim
1
mkdir -p /etc/nginx/ssl/ && cd /etc/nginx/ssl/

You can read this post for details :

Vim
1
https://jve.linuxwall.info/blog/index.php?post/2013/10/12/A-grade-SSL/TLS-with-Nginx-and-StartSSL

But, basically you will not build but install Nginx with apt get install command. Concatenated files are described on your cert provider’s help page – simple copy pasting two certs. Diffie-Hellman parameter should be generated by this command :

Vim
1
openssl dhparam -rand “ 2048

You can read details here :

Vim
1
http://h71000.www7.hp.com/doc/83final/ba554_90007/ch06s06.html

After you run config test, dhparam can through error. You should uncomment it and again test. Then reload the config and restart :

Vim
1
2
3
4
service nginx reload
# [ OK ] output expected
service nginx restart
# [ OK ] output expected

As said, this is specifically for WordPress with permalinks on Rackspace using Nginx. Do not blindly copy and first take a backup of your working file via FTP if its comfortable to you. It does not matter whether port 80 is default or port 443. That is of theoretical importance.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to SSL Grade Optimization Tweak For Rackspace Cloud Server

  • Nginx Configuration for HSTS Preload

    Chrome, Firefox, Safari will at least check a website in the list of HSTS Preloading. Here is the right Nginx configuration for HSTS preload.

  • Install/Renew SSL Cert on Apache (2020 Cipher Suites)

    Those who are following us since many years know that we publish the updated server guides enough for a newbie to build and run a professional-grade quality. Renew and getting a new (paid) SSL certificate has little difference except – you may use the old CSR, Private Key and the intermediate certificate. Reusing the old […]

  • Steps to Install NextCloud on Cloud Server (Nginx, Redis Cache)

    Here Are the Steps to Install NextCloud on Cloud Server With Nginx Server, Redis Cache, 2 FA, HTTPS. NextCloud is Like Your Own Dropbox.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How to Install Appwrite as a Backend ServerJune 8, 2023
  • What is Application Lifecycle ManagementJune 8, 2023
  • How to Add Auto Anchor to WordPress HeadingsJune 7, 2023
  • Self-Hosted Fonts vs. Cloud-Hosted FontsJune 7, 2023
  • How to Restrict Certain Posts or Categories In WordPress by CountryJune 6, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT