Re: S/MIME encrypted by Bouncycastle cannot be decrypted with openssl

2010-12-29 Thread Dr. Stephen Henson
On Wed, Dec 29, 2010, Markus Wernig wrote: > On 12/28/10 18:35, Dr. Stephen Henson wrote: > > > At around line 184 there is a longer line which seems to be confusing > > OpenSSL's base64 decoder. If you add a newline in there it seems to be OK. > > Yes, I noted that too. This also does the trick

Re: S/MIME encrypted by Bouncycastle cannot be decrypted with openssl

2010-12-29 Thread Markus Wernig
On 12/28/10 18:35, Dr. Stephen Henson wrote: > At around line 184 there is a longer line which seems to be confusing > OpenSSL's base64 decoder. If you add a newline in there it seems to be OK. Yes, I noted that too. This also does the trick: # base64 -d encMsgNok.eml > encMsg.bin # base64 encMs

Re: S/MIME encrypted by Bouncycastle cannot be decrypted with openssl

2010-12-28 Thread Dr. Stephen Henson
On Tue, Dec 28, 2010, Markus Wernig wrote: > Hi all > > I am having trouble decrypting S/MIME messages with openssl that were > generated in an application using the bouncycastle java-api. > [snip] > > I know this was a long read, but still I would be very grateful for any > pointers ... if any

Re: S/MIME encrypted by Bouncycastle cannot be decrypted with openssl

2010-12-27 Thread Markus Wernig
Ah, I forgot: Unfortunately Thunderbird can decrypt both messages after importing the certificate/key ... On 12/28/10 00:23, Markus Wernig wrote: > Hi all > > I am having trouble decrypting S/MIME messages with openssl that were > generated in an application using the bouncycastle java-api.

S/MIME encrypted by Bouncycastle cannot be decrypted with openssl

2010-12-27 Thread Markus Wernig
Hi all I am having trouble decrypting S/MIME messages with openssl that were generated in an application using the bouncycastle java-api. I have tried the following: # openssl smime -decrypt -in encMsgNOK.eml -inkey private.key This results in: Error reading S/MIME message 3073721992:error:0D06B