More explicit error handling.
Validate private/public key match.