More work on DSA signatures

* extract key type along with fingerprint
* set sigalg based on key type when signing
* support alias password different from store password