PGP Key Help

Hello I’m trying to setup PGP using emClient. I’ve created a key pair and it works in emClient. However, when I export the public key and import it Stalwart (open source mail server) Encrypt at rest feature, it says Failed to decode base64 certificate. So I contacted Stalwart support and they suggested a generate a new PGP certificate using thunderbird. I did, and it works with Stalwart. I then tried to import it the key to emClient and it goes into “others certificate” and does not associate with the correct email address, hence not decrypting messages for that account.

As a test I exported the same certificate I imported and its different than the original public key so it seems emClient is modifying it for some reason. Whatever way its modifying it causes it do be incompatible with Stalwart.

So I have three questions: 1. Why is the key generated by emClient not working with Stalwart? 2. What changes are being made to the certificate that are causing it to be incompatible? 3. How can I associate the certificate generated by Thunderbird with the correct mail account (i.e appears in my certificates instead of others).

I figured out one of my problems. I was importing the PGP Public Key. I needed to import the Private Key. That solves #3, but doesn’t answer 1 & 2.