HallmarcDotNet

Marc Elliot Hall's Blog

Headlines

Christmas card is up Check out the Flash...

Blog-o-licious We've got blogs...

Site Redesigned HallmarcDotNet has a new look...

 

Welcome to Marc's Weblog

— also known as my vanity gripe page

Although I'm currently working in St. Louis, Missouri, you may be interested in my abilities for your project. If so, please view my résumé and Open Letter to Recruiters if you are looking for an experienced, senior technical manager, project manager, business analyst, team lead, software engineer, web application developer, webmaster, system administrator, technical writer, or technical editor.


May
Sun Mon Tue Wed Thu Fri Sat
         
           
2009
Months
May

Sat, 02 May 2009


Social Networks

The latest rage on Facebook apparently is apps that ask you to list five of your favorite things in a category. I don't think I can even name five wrestlers, so it's probably just as well I'm not on Facebook. Although my wife is, and she thinks it's wonderful. I did once, long ago, join Classmates.com. None of the people I would have considered renewing relationships with ever seem to have joined. Before I reached my current viewpoints on Internet-enabled social networking, I also joined Friendster.com; but it has been nearly a decade since then.

Facebook, though, for me, is just not a draw. Yes, I do have a blog, which I even occasionally update; but as you can see, it's on my personal website, where I have total control of the context and copyrights. But when it comes to interpersonal relationships, I like to keep my one-on-one communications confidential. The idea of a "wall" where I get drive-by comments from acquaintances, or having the entire subscriber base (or even just the people already on my friends list) know who is in my social network, or having people tag pictures with my name, with or without me actually being in them — even with the "privacy" controls Facebook provides —  just leaves me cold.

Further, having to maintain personas on multiple networks (Linked-in, Facebook, Classmates.com, MySpace, Friendster, Orkut, etc.) to maintain separation between professional and personal lives, as well as hit the "right" sites so that the "right" people see I'm a member of the same communities… well, it's burdensome. The MySpace people want to use MySpace; the Facebook people want to use Facebook. It's just too much work for me. The single option of Geocities in the '90s was easier.

Finally, I've had a website since 1996. My Google PageRank is excellent. If people I already know want to find me online, it's a piece of cake. If people I don't already know want to find someone with my skills (e.g., recruiters), my resume is at or near the top of Google's results in all the markets I care about.

That being said, for many, Facebook and its ilk are pretty darn good. They have reasonably featureful interfaces, a critical mass of users, and the backing of major corporations to ensure they stay available. And that's fine; it's just not for me.

posted at: 01:49 |


Thu, 19 Mar 2009




Unlocking Cryptography

Generating SSL Keys on Debian Linux

As reported in my last entry, I recently created updated SSL keys for my server. This is a somewhat arcane process, involving wizardly incantations on the command line. As a service to the community, I will now describe this process and provide a simple script to stramline the process.

First, the reason it was necessary to generate these keys is that the default Debian install creates keys that are only good for one year. Further, these keys are “snakeoil”; that is literally what the configuration calls them, which serves as a reminder to sys-admins that they are the default configuration (generally more exploitable), they are not part of a chain-of-trust (nobody else is vouching that you are who you say you are), and they potentially do not uniquely identify your server (setting up a series of servers with the same configuration can cause confusion among various connecting hosts).

These instructions apply to generating a self-signed key: just as with the default Debian key, nobody else is vouching that you are who you say you are. If you want to get an “official” key, you have several options, of varying expense:

Unless you are going to be selling something to the general public, or will be accepting payments from people you don’t personally know, however, these are all overkill. A self-signed cert will work just fine for you if you are using this server inside an organization where you have control over browser deployments, or if you are working with a technical audience of people you already know.

On to the steps!

Remember, these are specific to Debian GNU/Linux default installs. If your system is on another version of Linux, you’ve customized your install in some unusual way, or you’re using another OS, you will have to modify these instructions to match your environment.

Login as root:

sudo su -

Change directories to your SSL configuration directory:

cd /etc/ssl;

Create the seed for your private key:

openssl genrsa -out example.com.key 1024;

Use the seed to generate a public/private key pair request:

openssl req -new -key example.com.key -out example.com.csr;

Generate and sign the keys:

openssl x509 -req -days 365 -in example.com.csr -signkey example.com.key -out example.com.crt;

copy the old/default key to a timestamped file:

mv /etc/ssl/example.com.csr "/etc/ssl/example.com.csr.`/bin/date +%Y%m%d`";

Copy the old/default apache certificate to a timestamped file:

mv /etc/apache-ssl/apache.pem "/etc/apache-ssl/apache.pem.`/bin/date +%Y%m%d`";

Copy the new private key to the apache-ssl certificate:

cp -p example.com.key /etc/apache-ssl/apache.pem;

Sign the new apache-ssl certificate:

cat example.com.crt >> /etc/apache-ssl/apache.pem;

Change permissions on the certificate to avoid security issues:

chmod 600 /etc/apache-ssl/apache.pem;

Delete the originals:

rm /etc/apache2/apache.pem;

link the apache-ssl certificate to apache2’s, so you don’t deal with multiple certs when you don’t need to:

ln /etc/apache-ssl/apache.pem /etc/apache2/apache.pem;

copy the apache cert to the generic ssl cert library:

cp -p /etc/apache-ssl/apache.pem /etc/ssl/certs/ssl-cert-example.com.pem;

copy the private key to a restricted area:

mv ./example.com.key /etc/ssl/private/;

Change permissions on the private keys to ensure they remain private:

chmod 600 /etc/ssl/private/*;

change ownership on the private keys, as well:

chown root.ssl-cert /etc/ssl/private/example.com.key;

Move the public key into the certificate directory:

mv example.com.crt /etc/ssl/certs/;

Change permissions on the public keys, also:

chmod 600 /etc/ssl/hall*;
chmod 600 /etc/ssl/certs/example.com.crt;
chmod go+r /etc/ssl/certs/example.com.pem;

Restart Apache and your mailserver (I use Postfix rather than Exim) so that they reload their keys:

etc/init.d/./apache2 restart;

/etc/init.d/./postfix reload;

All done!

I’ve also written a script to automate this process. Feel free to use it, but remember I’m not responsible if it breaks anything.

Comments, criticisms, and corrections are welcome.

posted at: 01:00 |


Mon, 16 Mar 2009



Marvelously Modified Mailserver

Geeky Fun!

After spending a whole week of classroom time in a “System p LPAR and Virtualization I: Planning and Configuration” training session, this weekend I was feeling motivated to make a few changes. As I’d been deferring the (completely unrelated) migration of my email and SSH server to a new platform, it was time to take action!

This is a relatively large change for my small environment. Currently, I’m running a web server (Apache), a mail server (Postfix with SpamAssassin), a remote access server (SSH), Windows (Samba) and Unix (NFS) networking servers, some monitoring utilities (Monit), and various smaller functional programs.

Fortunately, the migration process was to be relatively painless. As I had planned for this, I already had mirrored the configuration from my “Old and Busted” system (based on an Intel Pentium III running at 800 MHz, and although rock solid, dreadfully slow), to the “New and Kewl” system (based on an Intel Xeon dual core, dual processor running at 2.3 GHz). All that needed to be done, then, was:

  1. At the router, stop accepting inbound email for the duration of the migration.
  2. Disable the Postfix daemon on OldAndBusted.
  3. Copy the user mailboxes from OldAndBusted to NewAndKewl.
  4. At the router, set inbound email connections to be directed to NewAndKewl.

And that should do it!

Except for the small item of ensuring that my users’ individual email clients are all configured to talk to NewAndKewl instead of OldAndBusted. Not a problem! I use DNS for my internal network, so I updated the DNS configuration to point mail.hallmarc.net at NewAndKewl, and everything was good.

Except the email clients were using the IP address rather than the fully-qualified domain name for the mail server. Uh. Dumb. Ah! but I can modify the configuration from the command line for all the kids accounts by logging in remotely and changing all of Thunderbird’s instances of OldAndBusted’s IP to NewAndKewl’s IP. Done and done. (Yes, I did have to use the GUI on my wife’s Windows XP PC to do this. One more reason not to support Windows.)

About using that GUI… Apparently my wife for months had been clicking through a dialog box every time she collected email. The dialog indicated that the mail server’s SSL/TLS certificates had expired. I only learned this because, yup, I used the GUI to change her server setting. So now I needed to update my server certs. Which will be the subject of my next blog entry.

posted at: 19:33 |


Thu, 19 Feb 2009



small, backup cat

Lola Update

As referenced in an earlier posting about Lola, the demon-spawned cat from Hell, We had cat problems. If you’ll recall (or just read again to refresh your memory), Lola had behavioral issues. I left the story hanging with Lola being taken to the vet for a health evaluation. Her final disposition was pending the outcome of that examiniation.

(Un)Fortunately for Lola, no health issues were evident. The shelter from which Lola had been adopted was willing to take her back; but she will never be permitted to leave the shelter again to be adopted by a caring family.

Yes, we got another cat.

No, I’m not particularly happy about it.

But Runway is cute.

Runway the adopted cat

posted at: 19:51 |


Thu, 12 Feb 2009


Time’s up!

Unix time is fun! As I noted in a previous entry about the nature of timekeeping in the computer world, Unix tracks time by counting seconds since January 1, 1970.

The latest milestone for Unix time is at 23:31:30 UTC on February 13, 2009. People who like patterns in their numbers will rejoice as Unix time reaches 1234567890 seconds since the beginning of the Epoch. By coincidence, this day falls on Friday the 13th on the Gregorian calendar.

If you're using a Unix or Unix-like system, you can see how this works:

[on GNU]

>$ date -ud@1234567890

[on BSD]

>$ date -ur 1234567890

That will look like this:

PuTTY_date_screenshot.gif

For more information see the time_t entry on Wikipedia, the free encyclopedia.

posted at: 12:16 |


Sat, 03 Jan 2009


Saturday Chores

Here in the Hall household we have a tradition of assigning chores by random lot. It works like this:

In an old plastic frosting container, we keep 18 Popsicle  sticks, each with a chore written on it. They range from "clean basement bathroom" to "vacuum stairs to second floor". There are three sticks labeled "Freebie", too. On Saturday mornings, each of the kids draws three sticks from the container. If we parents are feeling particularly mean, we might remove the "Freebie" sticks, first. If some of the easier chores have been done several weeks, but the more important ones are being neglected, we sometimes take out some of those easier chores.  

Generally, this works out pretty well.

Unfortunately, this morning we had a few issues with kids thinking that this system is unfairly administered. Usually, when this happens we start adding chores. Sometimes we do this by selecting a specific stick, and other times by having the rebellious child do the drawing. After a few rounds of this, the kids usually accept that they've got it pretty good and ought to stop while they're ahead.

If chores are finished by noon, the kids receive their allowances for the week. Then it's either free time or we do something as a family.

 

posted at: 12:30 |



Marc Elliot Hall St. Peters, Missouri 

Page created: 21 January 2002
Page modified: 31 December 2009

spacer About Us | Site Map | Privacy Policy | Contact Us | ©1999 - 2009 Marc Elliot Hall