<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>Fun with ones and zeros - openssl</title>
<description><![CDATA[Barry's notes on computer software and hardware]]></description>
<link>/blog/tags/openssl</link>
<lastBuildDate>Thu, 21 May 2026 03:40:17 -0700</lastBuildDate>
<item>
<title>HTTPS Now</title>
<link>/blog/entries/https-now</link>
<pubDate>Mon, 04 May 2015 08:40:39 -0700</pubDate>
<author>bp@barryp.org (Barry Pederson)</author>
<description><![CDATA[<p>Put in a actual, recognized SSL Certificate on the site, and setup redirects to run everything through that now.<br />
</p>
<p>Figured that was a reasonable thing to do because people are still occasionally downloading old software from this site, and the cert was free for the year (Gandi).<br />
</p>
<p>Hopefully by the time it expires the <a href="https://letsencrypt.org/">Let's Encrypt</a> service will be up and running.</p>]]></description>
</item>
<item>
<title>Self-Signed SSL Certificates</title>
<link>/blog/entries/ssl_cert</link>
<pubDate>Wed, 15 Feb 2006 15:07:45 -0800</pubDate>
<author>bp@barryp.org (Barry Pederson)</author>
<description><![CDATA[
<p>Quite often I find myself needing to generate self-signed certificates
   for use with <a href="http://www.openssl.org">OpenSSL</a>.  There are 
   only three steps required...
</p>
<p>Generate a key file, named <code>ssl.key</code> for example:
</p>
<pre><code>openssl genrsa -out ssl.key 1024
</code></pre><p>Generate a Certificate Signing Request for the key, named <code>ssl.csr</code> in this 
   example.  You'll be asked a bunch of questions, when asked for 
   <code>Common Name (eg, YOUR name)</code> be sure to enter the domain-name you're 
   making the certificate for (such as <code>www.foobar.edu</code>).
</p>
<pre><code>openssl req -new -key ssl.key -out ssl.csr
</code></pre><p>Generate a signed certificate given the request and key, valid for 10 years
   (3650 days) and named <code>ssl.crt</code> in this example.  When you're done, 
   the <code>ssl.key</code> and <code>ssl.crt</code>
   files are what you usually need to install in your server.  <br />
</p>
<pre><code>openssl x509 -req -days 3650 -in ssl.csr -signkey ssl.key -out ssl.crt
</code></pre><p>As a bonus, here's how to view the contents of a certificate 
   file named <code>ssl.crt</code>
</p>
<pre><code>openssl x509 -in ssl.crt -text
</code></pre>

]]></description>
</item>
</channel>
</rss>