added a more detailed exception for Invalid public keys