Kopano Webapp error opening an S/MIME email

Hi,

just installed an UCS 4.3 server with Kopano and Kopano WebApp.
I tried to open an S/MIME signed (not encrypted) email and got an HTTP 500 error.
Apache Error Log:

[Sun May 20 19:29:24.483096 2018] [:error] [pid 5665] [client 31.18.xxx.xxxx:58419] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php:841\nStack trace:\n#0 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(233): Pluginsmime->verifyOCSP('-----BEGIN CERT...')\n#1 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(334): Pluginsmime->verifyMessage(Resource id #17, 'Content-Type: m...')\n#2 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(79): Pluginsmime->onSignedMessage(Array)\n#3 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(550): Pluginsmime->execute('server.util.par...', Array)\n#4 /usr/share/kopano-webapp/server/includes/util.php(466): PluginManager->triggerHook('server.util.par...', Array)\n#5 /usr/share/kopano-webapp/server/includes/modules/class.itemmodule.php(423): parse_smime(Resource id #9, Resource id #17)\n#6 /usr/share/kopano-webapp/server/includes/modules/class.itemmodule.php(55): ItemModule->open(Resource id #9, '\\x00\\x00\\x00\\x00\\x83/\\xB4\\\\O\\x05C\\xB6\\x838\\x91...', Arr in /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php on line 841, referer: http://example.com/webapp/

It seems php-curl is missing (why?).
after installing php-curl another error:

[Sun May 20 19:30:34.648516 2018] [:error] [pid 23638] [client 31.18.xxx.xxx:58484] PHP Fatal error:  Uncaught Error: Call to undefined function WAYF\\bcmul() in /usr/share/kopano-webapp/plugins/smime/php/lib/Der.php:68\nStack trace:\n#0 /usr/share/kopano-webapp/plugins/smime/php/lib/X509.php(124): WAYF\\Der->next(2)\n#1 /usr/share/kopano-webapp/plugins/smime/php/lib/X509.php(110): WAYF\\X509->tbsCertificate()\n#2 /usr/share/kopano-webapp/plugins/smime/php/lib/X509.php(104): WAYF\\X509->certificate_do()\n#3 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(861): WAYF\\X509->certificate('0\\x82\\x05\\xAC0\\x82\\x04\\x94\\xA0\\x03\\x02\\x01\\x02\\x02\\x07...')\n#4 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(233): Pluginsmime->verifyOCSP('-----BEGIN CERT...')\n#5 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(334): Pluginsmime->verifyMessage(Resource id #18, 'Content-Type: m...')\n#6 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(79): Pluginsmime->onSignedMessage(Array)\n#7 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(550): Pluginsmime->execute('server.util.par.. in /usr/share/kopano-webapp/plugins/smime/php/lib/Der.php on line 68, referer: http://example.com/webapp/

am I doing something wrong?

Thx
1of16

PS: yes, I noticed the HTTP 500 Internal Server Error topic, but it seems to be another error.

seems php7.0-bcmath is missing as well.

Univention 4.3 sometimes resolves the php dependency to the 5.x pendants for our packages. For the next upload i am already explicitly installing the php7 packages as dependencies of the integration, maybe I’ll need to write a join script to force the usage php7. I still need to think about this.

1 Like

thank you!

apt install php-bcmath

did the trick :slight_smile:

1 Like
Mastodon