Read the man pages for gpg...I think it does a lot of stuff with keys...
Here you go...
http://www.dewinter.com/gnupg_howto/...Administration
The crux of the article is ...
gpg --gen-key will help you generate a key of a length that you want...you can choose the algorithms and key length here...
Cheers
Arvind