unsupported key type "RSA PRIVATE KEY" passed with the PEM

btruong
btruong
Community Member

Hi team,

I'm having some issues with retrieving my SSH keys via the CLI.

When I attempt to get a specific SSH Key item using the following command:

op item get 5rxxwsxxxdk2ywjvxxx4bxxq

I get the following error:

[ERROR] 2023/10/28 10:54:01 unsupported key type "RSA PRIVATE KEY" passed with the PEM

I checked through the forums and seems like a number of people are having the same issue. This is a blocker for my workflow as I rely on 1Password to store all my SSH private keys and the CLI to retrieve them securely as part of a CI/CD process.

I don't know when this started but it seems to be one of the later CLI versions, as I never had this issue earlier.

Even when specifying to retrieve only specific fields from the item -- eg op item get xxx --fields label=notesPlain does not seem to be able to pass this specific error.


1Password Version: 8.10.18
Extension Version: Not Provided
OS Version: macOS 14.1
Browser: CLI 2.22.0

This discussion has been closed.