Check RSA key validity on import