robotframework-crypto icon indicating copy to clipboard operation
robotframework-crypto copied to clipboard

Error message on incorrect private key password is misleading

Open MichaelHallik opened this issue 4 years ago • 0 comments

If you provide an incorrect password (for the private key) as an import argument the following error will occur:

"Calling method '_start_test' of listener 'CryptoLibrary' failed: AttributeError: No private key known or found in file. Generate private key first!"

Since the password is incorrect, the CryptoLibrary cannot access the private key and thus spits out this error. It would be nice though if it would tell us the actual, underlying root cause, which is that the password didn't check out.

MichaelHallik avatar Nov 14 '21 21:11 MichaelHallik