<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ssl on Evan Hoffman</title><link>https://evan.wtf/tags/ssl/</link><description>Recent content in Ssl on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Tue, 14 Oct 2014 12:01:49 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/ssl/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing a new SSL certificate in your ELB via CLI</title><link>https://evan.wtf/2014/10/14/installing-a-new-ssl-certificate-in-your-elb-via-cli/</link><pubDate>Tue, 14 Oct 2014 12:01:49 +0000</pubDate><guid>https://evan.wtf/2014/10/14/installing-a-new-ssl-certificate-in-your-elb-via-cli/</guid><description>&lt;p&gt;For future me:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Create the key and CSR:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;$ openssl req -out wildcard.site.com.csr -new -newkey rsa:2048 -nodes -keyout wildcard.site.com.key&#10;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Upload the CSR to your SSL vendor (in this case, DigiCert) and obtain the signed SSL certificate.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Create a PEM-encoded version of the signing key. This is required for AWS/IAM certs. To check if your key is already PEM-encoded, just &amp;ldquo;head -1 site.key&amp;rdquo;. If the first line says &amp;ldquo;&amp;mdash;&amp;ndash;BEGIN PRIVATE KEY&amp;mdash;&amp;ndash;&amp;rdquo; then it&amp;rsquo;s NOT PEM-encoded. The first line should be &amp;ldquo;&amp;mdash;&amp;ndash;BEGIN RSA PRIVATE KEY&amp;mdash;&amp;ndash;&amp;rdquo;.&lt;/p&gt;</description></item><item><title>Load balancing in EC2 with Nginx and HAProxy</title><link>https://evan.wtf/2012/01/09/load-balancing-in-ec2-with-nginx-and-haproxy/</link><pubDate>Mon, 09 Jan 2012 17:00:22 +0000</pubDate><guid>https://evan.wtf/2012/01/09/load-balancing-in-ec2-with-nginx-and-haproxy/</guid><description>&lt;p&gt;We wanted to setup a loadbalanced web cluster in AWS for expansion. My first inclination was to use &lt;a href="http://aws.amazon.com/elasticloadbalancing/"&gt;ELB&lt;/a&gt; for this, but I soon learned that ELB doesn&amp;rsquo;t let you allocate a static IP, requiring you to refer to it only by DNS name. This would be OK except for the fact that our current DNS provider, &lt;a href="http://dyn.com/dns/dynect-managed-dns/"&gt;Dyn&lt;/a&gt;, requires IP addresses when using their GSLB (geo-based load balancer) service.&lt;/p&gt;&#10;&lt;p&gt;Rather than let this derail the whole project, I decided to look into the software options available for loadbalancing in EC2. I&amp;rsquo;ve been a fan of hardware load balancers for a while, sort of looking down at software-based solutions without any real rationale, but in this case I really had no choice so I figured I&amp;rsquo;d give it a try.&lt;/p&gt;</description></item><item><title>Making sure SSLv2 is disabled in Apache (and Nginx)</title><link>https://evan.wtf/2011/09/20/making-sure-sslv2-is-disabled-in-apache/</link><pubDate>Tue, 20 Sep 2011 14:06:38 +0000</pubDate><guid>https://evan.wtf/2011/09/20/making-sure-sslv2-is-disabled-in-apache/</guid><description>&lt;p&gt;&lt;strong&gt;Edit Jan 24, 2012:&lt;/strong&gt; Deleted all the crap from this story and just left the recommended Apache and Nginx SSL cipher suites for maximum security without SSLv2 and without BEAST vulnerability (at least according to Qualys).&#10;&lt;strong&gt;Apache httpd&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;SSLProtocol -ALL +SSLv3 +TLSv1&#10;SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM;&#10;SSLHonorCipherOrder on&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;nginx&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;ssl_protocols SSLv3 TLSv1;&#10; ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM;&#10; ssl_prefer_server_ciphers on;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Source:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://community.qualys.com/blogs/securitylabs/2011/10/17/mitigating-the-beast-attack-on-tls"&gt;Qualys&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.ssllabs.com/ssldb/"&gt;SSL checker&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;a href="http://affiliate.godaddy.com/redirect/5F43C3ECBA841ACFC3859F4F4E6CA7DA64C271385B2D61A3AD6F3CCE83EB1DD8235E60DCD7D63BCD92E2429E79A75FAC"&gt;&lt;img src="http://affiliate.godaddy.com/ads/5F43C3ECBA841ACFC3859F4F4E6CA7DA64C271385B2D61A3AD6F3CCE83EB1DD8235E60DCD7D63BCD92E2429E79A75FAC" alt="Go Daddy $12.99 SSL Sale!"&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Wasted time with Exchange 2010, SquirrelMail, and IMAP-SSL</title><link>https://evan.wtf/2010/11/30/wasted-time-with-exchange-2010-squirrelmail-and-imap-ssl/</link><pubDate>Tue, 30 Nov 2010 17:32:11 +0000</pubDate><guid>https://evan.wtf/2010/11/30/wasted-time-with-exchange-2010-squirrelmail-and-imap-ssl/</guid><description>&lt;p&gt;I&amp;rsquo;m setting up SquirrelMail to point to my Exchange 2010 server via IMAP (don&amp;rsquo;t ask) and couldn&amp;rsquo;t get SM to talk to Exchange on port 993 (imaps). Even though the servers on the same subnet, any time passwords are being sent over the network I like to opt for SSL. I found a couple of sites suggesting that the problem was that there was no SSL certificate installed, but I knew for a fact there was a valid certificate because I could get to &lt;a href="https://webmail.example.com/"&gt;https://webmail.example.com/&lt;/a&gt; for OWA.&lt;/p&gt;</description></item><item><title>Setting up InspIRCd as an internal IRC server for companywide chat</title><link>https://evan.wtf/2010/10/28/setting-up-inspircd-as-an-internal-irc-server-for-companywide-chat/</link><pubDate>Thu, 28 Oct 2010 17:16:12 +0000</pubDate><guid>https://evan.wtf/2010/10/28/setting-up-inspircd-as-an-internal-irc-server-for-companywide-chat/</guid><description>&lt;p&gt;I got this idea (&lt;a href="http://teddziuba.com/2010/01/break-my-concentration-and-i-b.html"&gt;from this blog post&lt;/a&gt;) that it would be cool and great if we had an IRC server to facilitate communication within our team. I started checking out some different IRC servers to see which ones supported the main features I wanted (LDAP auth &amp;amp; SSL). I started out with ratbox but I didn&amp;rsquo;t really like it. I found InspIRCd and after some config tweaking it&amp;rsquo;s working well. Here&amp;rsquo;s the info from modules.conf for authentication against Active Directory (so people login with their AD usernames):&lt;/p&gt;</description></item><item><title>Forcing Wordpress administration over SSL</title><link>https://evan.wtf/2010/09/20/forcing-wordpress-administration-over-ssl/</link><pubDate>Mon, 20 Sep 2010 15:46:05 +0000</pubDate><guid>https://evan.wtf/2010/09/20/forcing-wordpress-administration-over-ssl/</guid><description>&lt;p&gt;I never like typing a password into a non-SSL site, no matter how trivial it is. In order to give my own site this ability I simply used mod_rewrite to force requests to Wordpress&amp;rsquo;s admin pages to go over SSL.&lt;/p&gt;&#10;&lt;p&gt;The .htaccess file for the site looks like this:&lt;/p&gt;&#10;&lt;h1 id="begin-wordpress"&gt;BEGIN WordPress&lt;a class="heading-anchor" href="#begin-wordpress" aria-label="Link to this section"&gt;&#10; &lt;svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"&#10; stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&#10; &lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&#10; &lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&#10; &lt;/svg&gt;&#10; &lt;/a&gt;&#10;&lt;/h1&gt;&#10;&lt;p&gt;RewriteEngine On&#10;RewriteBase /evan/&#10;RewriteRule ^index.php$ - [L]&#10;RewriteCond %{REQUEST_FILENAME} !-f&#10;RewriteCond %{REQUEST_FILENAME} !-d&#10;RewriteRule . /evan/index.php [L]&lt;/p&gt;</description></item><item><title>Outlook 2007 &amp; Exchange 2010 Autodiscover SSL certificate error annoyance</title><link>https://evan.wtf/2010/07/27/outlook-2007-exchange-2010-autodiscover-ssl-certificate-error-annoyance/</link><pubDate>Tue, 27 Jul 2010 11:51:54 +0000</pubDate><guid>https://evan.wtf/2010/07/27/outlook-2007-exchange-2010-autodiscover-ssl-certificate-error-annoyance/</guid><description>&lt;p&gt;One of the more annoying side effects of migrating my mailbox to Exchange 2010 has been the nagging of Outlook 2007&amp;rsquo;s Autodiscovery feature. Now, every time I start Outlook I get hit with a certificate error for autodiscover.domain.com. Now, autodiscover.domain.com is a CNAME to mail.domain.com, which is the OWA URL for the CAS. The SSL certificate is valid - but it&amp;rsquo;s valid for mail.domain.com. I could buy &lt;a href="http://affiliate.godaddy.com/redirect/57C9CDCFC2D9286731DFC80559FF75B02AA47A2EADDA2D5CC2407E21C4FBC792" title="Go Daddy $12.99 SSL Sale!"&gt;a SSL certificate from GoDaddy for $12.99&lt;/a&gt; (an insanely great price, btw) for &amp;ldquo;autodiscover&amp;rdquo; but that would also require using another IP address on the CAS (since you can can only bind one SSL certificate to an IP:port pair), and that seems like a waste of an IP address.&lt;/p&gt;</description></item><item><title>Monitoring SSL certificate expiration with ssl-cert-check</title><link>https://evan.wtf/2009/08/31/monitoring-ssl-certificate-expiration-with-ssl-cert-check/</link><pubDate>Mon, 31 Aug 2009 15:29:11 +0000</pubDate><guid>https://evan.wtf/2009/08/31/monitoring-ssl-certificate-expiration-with-ssl-cert-check/</guid><description>&lt;p&gt;I was about to write a script using OpenSSL to monitor the SSL certificate expiration dates for a few servers when it dawned on me that someone had probably done this already.&lt;/p&gt;&#10;&lt;p&gt;The &lt;a href="http://prefetch.net/articles/checkcertificate.html"&gt;ssl-cert-check&lt;/a&gt; shell script takes a list of hosts/ports and prints out the expiration date (and how many days away that date is). It can also be configured to email a message for any certificates expiring in less than N days for easy cronibility (?). Seems lovely!&lt;/p&gt;</description></item></channel></rss>