Public and private keys cannot be used to encrypt and sign a message

thanks found the issue , added a password to the key. missed that in teh documentation