Make rsa_keys generic and introduce ability for DSA keys too.