Fixed security flaws in key signing.