Bugfix to PublicKeyFactory->fromCertData
Bugfixes to migrate_etc
Fixed new key setup, note that we don't deal in public key / private key, but in certificate (which contains the public key) / private key.