# Problems with an imported private key

**URL:** <https://community.ciphermail.com/t/problems-with-an-imported-private-key/393>\
**Category:** Gateway\
**Created:** [September 3, 2014, 2:29pm UTC](https://community.ciphermail.com/t/problems-with-an-imported-private-key/393 "2014-09-03T14:29:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Gunther](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stefan\_Gunther](https://community.ciphermail.com/u/Stefan_Gunther)\
**Post date:** [September 3, 2014, 2:29pm UTC](https://community.ciphermail.com/t/problems-with-an-imported-private-key/393/1 "2014-09-03T14:29:34Z")

</div>

Hello,

we have created a pair of keys Thunderbird/Enigmail.

The private key has been imported into the Ciphermail gateway on the client side, the public key into our Cipermail gateway.  
When sending an email to the address the keys have been created for, our gateways sends a notification about a successful encryption.  
But the gateway on the other side isn't able to decrypt the message:

03 Sep 2014 10:22:14 | INFO incoming; MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de]; Originator: s.guenther(a)in-put.de; Sender: s.guenther(a)in-put.de; Remote address: 127.0.0.1; Subject: Test e; Message-ID: \<zarafa.5406cfad.4b43.1434fa223d3bc646(a)zarafaserver.in-put.de\>; (mitm.application.djigzo.james.mailets.Log) [Spool Thread #1]  
03 Sep 2014 10:22:14 | INFO Subject filter is disabled for the sender; MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de] (mitm.application.djigzo.james.mailets.Default) [Spool Thread #1]  
03 Sep 2014 10:22:14 | INFO To internal recipient(s); MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de] (mitm.application.djigzo.james.mailets.Default) [Spool Thread #1]  
03 Sep 2014 10:22:14 | DEBUG next PGP object. level: 0, Type: class org.bouncycastle.openpgp.PGPEncryptedDataList (mitm.common.security.openpgp.PGPHandler) [Spool Thread #1]  
03 Sep 2014 10:22:14 | DEBUG PGPPublicKeyEncryptedData with key id 4909844165066620525 (mitm.common.security.openpgp.PGPHandler) [Spool Thread #1]  
03 Sep 2014 10:22:14 | WARN PGP decryption key not found; Recipient Key IDs: [442345413151FE6D]; Message-ID: \<zarafa.5406cfad.4b43.1434fa223d3bc646(a)zarafaserver.in-put.de\> (mitm.common.security.openpgp.PGPMIMEHandler) [Spool Thread #1]  
03 Sep 2014 10:22:14 | INFO Message handling is finished. Sending to final recipient(s); MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de]; Originator: s.guenther(a)in-put.de; Sender: s.guenther(a)in-put.de; Remote address: 127.0.0.1; Subject: Test e; Message-ID: \<zarafa.5406cfad.4b43.1434fa223d3bc646(a)zarafaserver.in-put.de\>; (mitm.application.djigzo.james.mailets.Log) [Spool Thread #1]

To test our configuration we created another pair of keys, this time on the Ciphermail gateway of the client, with identical settings for the user, except for the email address. With this account it is possible to decrypt an email.

Therefore we assume, that there is a problem with the handling of the imported private key.

Thanks for any hints and suggestions,

Stefan

![details_public_key.png](https://europe1.discourse-cdn.com/flex017/uploads/ciphermail/original/1X/386d76dd2b44ff932fd75eaa0fd71f1855736d80.png)

![details_private_key.png](https://europe1.discourse-cdn.com/flex017/uploads/ciphermail/original/1X/952ef366d545015a7b1f824066a80edf0123dbd2.png)

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [September 3, 2014, 2:38pm UTC](https://community.ciphermail.com/t/problems-with-an-imported-private-key/393/2 "2014-09-03T14:38:50Z")

</div>

The warning message says:

"WARN PGP decryption key not found; Recipient Key IDs: [442345413151FE6D];"

so a PGP key with private key with key id of 442345413151FE6D cannot be  
found on the receiving gateway. The picture from your email named  
"details\_private\_key.png" shows that there is no private key:

"Private key Available: false"

I'm note sure whether the image "details\_private\_key.png" is a  
screenshot of the receiving server but if so it seems the private key  
was not imported only the public key. Now it could be that there was  
some error on import but it might also be that only the public key ring  
was exported from Thunderbird and not the private key ring.

Kind regards,

Martijn Brinkers

> **···**
>
> On 09/03/2014 04:29 PM, Stefan Michael Guenther wrote:
> 
> > Hello,
> > 
> > we have created a pair of keys Thunderbird/Enigmail.
> > 
> > The private key has been imported into the Ciphermail gateway on the client side, the public key into our Cipermail gateway.  
> > When sending an email to the address the keys have been created for, our gateways sends a notification about a successful encryption.  
> > But the gateway on the other side isn't able to decrypt the message:
> > 
> > 03 Sep 2014 10:22:14 | INFO incoming; MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de]; Originator: s.guenther(a)in-put.de; Sender: s.guenther(a)in-put.de; Remote address: 127.0.0.1; Subject: Test e; Message-ID: \<zarafa.5406cfad.4b43.1434fa223d3bc646(a)zarafaserver.in-put.de\>; (mitm.application.djigzo.james.mailets.Log) [Spool Thread #1]  
> > 03 Sep 2014 10:22:14 | INFO Subject filter is disabled for the sender; MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de] (mitm.application.djigzo.james.mailets.Default) [Spool Thread #1]  
> > 03 Sep 2014 10:22:14 | INFO To internal recipient(s); MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de] (mitm.application.djigzo.james.mailets.Default) [Spool Thread #1]  
> > 03 Sep 2014 10:22:14 | DEBUG next PGP object. level: 0, Type: class org.bouncycastle.openpgp.PGPEncryptedDataList (mitm.common.security.openpgp.PGPHandler) [Spool Thread #1]  
> > 03 Sep 2014 10:22:14 | DEBUG PGPPublicKeyEncryptedData with key id 4909844165066620525 (mitm.common.security.openpgp.PGPHandler) [Spool Thread #1]  
> > 03 Sep 2014 10:22:14 | WARN PGP decryption key not found; Recipient Key IDs: [442345413151FE6D]; Message-ID: \<zarafa.5406cfad.4b43.1434fa223d3bc646(a)zarafaserver.in-put.de\> (mitm.common.security.openpgp.PGPMIMEHandler) [Spool Thread #1]  
> > 03 Sep 2014 10:22:14 | INFO Message handling is finished. Sending to final recipient(s); MailID: 4feb793b-7f4d-4599-87bb-db6545814423; Recipients: [input(a)xxxx-und-partner.de]; Originator: s.guenther(a)in-put.de; Sender: s.guenther(a)in-put.de; Remote address: 127.0.0.1; Subject: Test e; Message-ID: \<zarafa.5406cfad.4b43.1434fa223d3bc646(a)zarafaserver.in-put.de\>; (mitm.application.djigzo.james.mailets.Log) [Spool Thread #1]
> > 
> > To test our configuration we created another pair of keys, this time on the Ciphermail gateway of the client, with identical settings for the user, except for the email address. With this account it is possible to decrypt an email.
> > 
> > Therefore we assume, that there is a problem with the handling of the imported private key.
> 
> --  
> CipherMail email encryption
> 
> Open source email encryption gateway with support for S/MIME, OpenPGP  
> and PDF messaging.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)
