Import of p7b files fails

Hello,

I setup Ciphermail 5.0.4 on Ubuntu 20.4 with Tomcat 9.0.31 and openjdk 11.0.11

Importing a certificate from the current (old) Ciphermail is no problem. But when I select more than one certificate, the file certificates.p7b is created (which is technically okay) and the import fails with the message " There was an error uploading the certificate file. Cause: Processing of multipart/form-data request failed. Stream ended unexpectedly "

In /var/log/tomcat9/catalina.2021-08-13.log I find the following errors:

13-Aug-2021 15:39:31.589 INFO [https-jsse-nio-8443-exec-3] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
        java.lang.IllegalArgumentException: Invalid character found in the HTTP protocol
                at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:533)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:260)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
                at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
                at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.base/java.lang.Thread.run(Thread.java:829)

The same error appears when I try to import the suggested CA certficate list from Mozilla (https://ccadb-public.secure.force.com/mozilla/IncludedRootsPEMTxt?TrustBitsInclude=Email).

What am I doing wrong?

Thanks for any suggestions & hints,

Stefan

I just tested this is on a fresh installation of CipherMail on Ubutnu
20.04 and it works for me.

Which browser are you using?

Kind regards,

Martijn Brinkers

···

On Fri, 2021-08-13 at 14:17 +0000, Stefan Günther via Users wrote:

Hello,

I setup Ciphermail 5.0.4 on Ubuntu 20.4 with Tomcat 9.0.31 and
openjdk 11.0.11

Importing a certificate from the current (old) Ciphermail is no
problem. But when I select more than one certificate, the file
certificates.p7b is created (which is technically okay) and the
import fails with the message " There was an error uploading the
certificate file. Cause: Processing of multipart/form-data request
failed. Stream ended unexpectedly "

--
CipherMail email encryption
Email encryption with support for S/MIME,
OpenPGP, PDF Messenger and Webmail Messenger

I have tested it both with Chrome and FF on Linux, with all Addons/Plugins deactivated.

Kind regards,

Stefan

···

----Ursprüngliche Nachricht-----

Von: Martijn Brinkers via Users <users(a)lists.ciphermail.com>
Gesendet: Montag 23. August 2021 6:50
An: users(a)lists.ciphermail.com
CC: Stefan Michael Guenther <s.guenther(a)in-put.de>; Martijn Brinkers <martijn(a)ciphermail.com>
Betreff: Re: Import of p7b files fails

On Fri, 2021-08-13 at 14:17 +0000, Stefan Günther via Users wrote:
> Hello,
>
> I setup Ciphermail 5.0.4 on Ubuntu 20.4 with Tomcat 9.0.31 and
> openjdk 11.0.11
>
> Importing a certificate from the current (old) Ciphermail is no
> problem. But when I select more than one certificate, the file
> certificates.p7b is created (which is technically okay) and the
> import fails with the message " There was an error uploading the
> certificate file. Cause: Processing of multipart/form-data request
> failed. Stream ended unexpectedly "

I just tested this is on a fresh installation of CipherMail on Ubutnu
20.04 and it works for me.

Which browser are you using?