Generating CSRs (Certificate Signing Requests) using OpenSSL

If you are running any *nix operating system, you most likely have OpenSSL installed. If you want to generate SSL certificates for any servers you may have or for something like m0n0wall, you will need to generate a certificate signing request (CSR). It is very simple to do this:

On OS X, open up Terminal (in /Applications/Utilities/), and at the shell prompt, enter:
openssl req -nodes -new -keyout private.key -out server.csr

It will ask you a number of things:

Generating a 1024 bit RSA private key
.++++++
.............++++++
writing new private key to 'private.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:

Be sure that in the "Common Name" section, you enter the FQDN for your server. Unless you want to be asked to enter a password each time you access the SSL certificate, do not enter anything when you are asked for Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

You can now use the server.csr file to obtain your certificate from a certificate authority.

Motorola SLVR L7c and iSync - it can be done!

For everyone who wants to sync contacts between OS X and the L7c:

- Open up the Applications folder in OS X. Right click (or control click) the iSync icon and choose "Show Package Contents".
- Inside, you will find more folders and files. Go to the following directory: Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/
PlugIns/PhoneModelsSync.phoneplugin/Contents/Resources/

- Make a backup copy of MetaClasses.plist in this folder just to be safe. You can name it something like MetaClasses.plist.bak
- In TextEdit or another text editor, find the following line: <key>com.motorola.L7</key>
- Underneath this line, you should see <string>"Motorola CE, Copyright 2000"+L7</string> in two separate places. Add the following line directly below these two places: <string>Motorola CE, Copyright 2000+Motorola CDMA L7c phone</string>
- Save and close the file, pair the phone via Bluetooth if you have not done so already, and re-open iSync. You should now have iSync working with the L7c!

Note that calendar syncing is extremely flakey. This may be better now with Leopard, but I haven't checked myself.

Thanks to Dan Gallagher's blog for the basis of these instructions.

Basic WebDAV setup with Ubuntu 8.04 (Hardy Heron)

- Install Apache2: sudo apt-get install apache2
- Enable DAV modules: sudo a2enmod dav
- Create your directory in the /var/www/ folder: sudo mkdir /var/www/webdav
- Change permissions on the directory: sudo chmod 775 /var/www/webdav
- Change group ownership of the directory: sudo chgrp www-data /var/www/webdav
- Open the dav_fs.conf file for editing: sudo vi /etc/apache2/mods-enabled/dav_fs.conf
- Hit escape a couple of times just to be safe, and type :i to insert text.
- Add the following line below the DAVLockDB entry:
DAVMinTimeout 600
<Location /webdav/>
DAV On
AuthType Basic
AuthName "Restricted"
AuthUserFile /var/.DAVlogin
<LimitExcept options>
Require valid-user
</Limitexcept>
</Location>

- Hit escape again a couple of times to exit insert mode.
- Type :wq to write then quit vim
- Create your password file: sudo htpasswd -c /var/.DAVlogin yourusername
- Change yourusername above to whatever username you want. Enter your password when prompted.
- Reboot Apache: sudo /etc/init.d/apache2/restart

Ubuntu on Netra X1

The server that this site is running on is a Sun Netra X1. I recently picked it up to replace the previous server I was using. This was my first venture into Sun hardware, and definitely was quite the adventure getting everything working.

Finally up on the new server

So we are finally migrated to our new server. Took long enough, eh?

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
Powered by Drupal, an open source content management system