I use the class CkSshKey and the function FromOpenSshPublicKey.
The verification of my public key file failed. The LastErrorText contains the following text:
VerifyRsaKey: P is not prime.
I did not find any error description in the documentation that will explained the error. What is going wrong?
asked Nov 26 '12 at 11:29
The problem is that the key is not a valid one. The "P" part of the key should be a large prime number. The software that produced the key created one that did not use a prime number for the "P".
Unfortunately, the only solution is to re-generate a new key such that the p and q are valid prime numbers. There are computational issues w/ using non-prime numbers, and it wouldn't be a good idea to use a key where these parts are not prime.