dlech / KeeAgent

ssh agent plugin for KeePass 2.x
http://lechnology.com/software/keeagent
Other
522 stars 35 forks source link

Exception when loading keys #360

Closed montoner0 closed 1 year ago

montoner0 commented 1 year ago

After updating to 0.13.2 every attempt to load a key throws an exception:

KeeAgent: Error while loading key from entry '[entryname]'

Unexpected error

System.ArgumentException: settings has invalid private key location

Parameter name: settings

   at KeeAgent.ExtensionMethods.GetSshPrivateKey(EntrySettings settings, ProtectedBinaryDictionary binaries)

   at KeeAgent.ExtensionMethods.GetSshKey(PwEntry entry)

   at KeeAgent.KeeAgentExt.AddEntry(PwEntry entry, ICollection`1 constraints)

This is how the section in KeyAgent.settings looks:

  <PrivateKeyLocation>
    <SelectedType>attachment</SelectedType>
    <AttachmentName>[entry].ppk</AttachmentName>
    <SaveAttachmentToTempFile>false</SaveAttachmentToTempFile>
    <FileName />
  </PrivateKeyLocation>
montoner0 commented 1 year ago

The same with 0.13.1. It seems I've used some unreleased version 0.13.0...

dlech commented 1 year ago

You can try replacing PrivateKeyLocation with Location or restore from backup.

montoner0 commented 1 year ago

Thanks for the tip. It was enough to select the key again through the Manage Key Files... button.