mattosaurus / PgpCore

.NET Core class library for using PGP
MIT License
244 stars 98 forks source link

Public Key With Subkey Throwing 'Can't find encryption key in key ring.' #157

Closed vthokie93 closed 2 years ago

vthokie93 commented 2 years ago

I'll apologize in advance if this is a lack of understanding on my part. I have receive a public key that has subkeys Certify, Sign (Primary) and Encrypt.

Subkeys

When I try to encrypt using this key the following exception is thrown:

'System.ArgumentException' in System.Private.CoreLib.dll: 'Can't find encryption key in key ring.'

vthokie93 commented 2 years ago

I discovered it is an issue with the way I am handling the file.

mattosaurus commented 2 years ago

👍