I had a grumpy EC2 instance that wasn't allowing any inbound connections after it initialized (turns out it had a rogue firewalld rule that was shutting me down). I was able to get in to debug it by running this on my VPS:
I created a bash script that will pretty much automate the build process of a Centos7 Amazon Machine Image (for both PV & HVM instance types). It's available here.
All told, it was a bit of an experience getting it to work properly. The portion that gave me those most grief was getting GRUB2 to successfully install itself on a partitioned file system, which had itself had been created from an dev mapper volume mounted from a loopback device. Easy, right? ;)
So now that everybody is giving SSL the good lovin' that it deserves, people are starting to find that SSL can be kind of slow... especially when it's not properly configured. However, well-configured SSL can actually be FASTER than a non-encrypted connection (assuming you are running a newer browser).
For instance, the current incarnation of Nerdvana uses SPDY, SSL session caching and TLS Certificate Status Requests (a.k.a. OCSP Stapling) to make things run like greased lightning.
For greater security, we support only TLSv1+, use a select subset of ciphers, turn on HTTP Strict Transport Security (HSTS), and use a SSL cert generated with RSA 2048+ bit cert signed with SHA-256.
Here are the relevant bits from our Nginx config:
# Redirect all HTTP connections to HTTPS
listen 80 default;
return 301 https://nerdvana.org$request_uri;
# Our HTTPS server
# Enable SSL, with support for SPDY
listen 443 ssl spdy;
# SSL certificate setup
# OCSP stapling setup
resolver 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 valid=300s;
# Support HSTS
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
# SSL session caching
# SSL cipher/protocol setup
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# Prevent click-jacking and mime-sniffing
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
Note that you are going to want Nginx 1.5.10 or later to get the latest non-draft version of the SPDY protocol and OCSP stapling.
Also, you'll want to create your own DH key with 2048+ bits, since the OpenSSL default is 1024 bits and this will degrade the security of the initial key exchange (arguably the most critical part of the process). So run 'openssl dhparam -out dhparam.pem 4096', and then be prepared to wait for a good long time before the key is finally generated.
For a great resource on setting up Nginx in a secure yet speedy manner, check out:
Adjust the CIPHER and MAC strings to your liking (if anybody knows how to programatically determine the available ciphers and/or MACs, drop me a line).
If you are running a semi-recent version of Linux on semi-newish Intel box (i.e. one that supports AES-NI, which should be all post-Nehalem CPUs), "firstname.lastname@example.org" is probably going to be the fastest combo for you (I get around 360 MB/s on my dev box).