Hot Koehls
  • Email
  • Feedburner
  • Linkedin
  • Twitter
  • Home
  • About
  • Archives
  • Contact
  • Software
    • S3imple Backup
    • Twitter Feed Archiver
    • FileTime
    • Flickr API Demo
Search
Home» For techies » Create Self-Signed Wildcard SSL Certificate

Create Self-Signed Wildcard SSL Certificate

Posted by Frank - February 24, 2012 - For techies
0

Here’s the command list to quickly create a self-signed SSL certificate from the Linux command line. You can copy/paste each line to the shell to generate the key.

It assumes you will place each set of SSL files under a directory assigned per domain; at the end you will have a directory that contains the newly created .host, .key, .pem and .info files.

mkdir /etc/ssl/subdomain.domain.com

cd /etc/ssl/subdomain.domain.com

openssl genrsa 2048 > host.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert

# Enter subdomain.domain.com for Common Name. It's the 6th option in the dialog.
# All other options can be left blank for defaults
# For wildcard SSL, enter *.domain.com

openssl x509 -noout -fingerprint -text < host.cert > host.info

cat host.cert host.key > host.pem

chmod 400 host.key host.pem

A signed SSL certificate is necessary for all your public-facing domains. But you can save yourself a lot of time and money by using self-signed certificates on sites that have a limited or more technical audience. For example, I use self-signed certificates for all the installations of phpMyAdmin that I set up.

The protection you get from a self-signed certificate is exactly the same as one you pay for; the browser warning that pops up is the only difference. Click through it and you’re good to go.

Leave a Reply Cancel reply

Categories

  • For entrepreneurs
  • For everyone
  • For techies

Latest Tweets

  • No public Tweets found

Recent Comments

  • Ηλεκτρολόγος Καρδίτσα on Find the second (or third, or fourth) occurence in a string
  • ChazzMatt on Write code like they do in Hollywood
  • ChazzMatt on Turn off AVG e-mail signature
  • Rohitash on Automating SSH or SFTP in scripts
  • kgiFozzkjk on MySQL founder Michael Widenius concerned about sale to Oracle

Recent Posts

  • How to say “GIF”
  • Display line numbers in WebSVN file detail view
  • It’s dangerous to go alone
  • Create Self-Signed Wildcard SSL Certificate
  • What comes after the yottabyte?
(c) 2013 Frank Koehl. All Rights Reserved.
  • Contact Us
  • Sitemap