ubuntu/debian local issues

If you ever have an issue similar to below on debian or ubuntu

svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_GB.UTF-8
svn: warning: please check that your locale name is correct

then run the following command to fix the problem, obviously choosing your locale, in my case for debian wheezy, I chose 122, which was `en_GB.UTF-8`

dpkg-reconfigure locales

Self-signed Certificate

First create a Private Key to sign the certificate

openssl genrsa -des3 -out server.key 1024

Create CSR

openssl req -new -out arif-ali.csr -key server.key \
-subj "/C=GB/ST=South Yorkshire/L=Sheffield/O=Example Inc/OU=Web Dept/CN=example.com" \
-out server.csr

Decrypt the private key

cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

Sign the Certificate with the private key

openssl x509 -req -days 365 -in server.csr -signkey server.key \
-out server.crt

SSH Fingerprint

You can generate a fingerprint for a public key using ssh-keygen like so

ssh-keygen -lf /path/to/key.pub

Concrete example (if you use an RSA public key):

$ ssh-keygen -lf ~/.ssh/id_rsa.pub
2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff /Users/username/.ssh/id_rsa