Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    SMIME Internal Server Error on Certificate Verify

    Plugins for Kopano WebApp
    5
    14
    1386
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mcostan
      mcostan last edited by

      Good morning,

      I am having a similar problem. When I open an encrypted email I get an error and in the log file I can see this:

      Mon Jul 01 14:18:05.950394 2019] [:error] [pid 9089] [client 127.0.0.1:43534] 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/class.certificate.php(307): WAYF\\
      X509->certificate('0\\x82\\x05\\xA20\\x82\\x04\\x8A\\xA0\\x03\\x02\\x01\\x02\\x02\\x08...')\n#4 /usr/share/kopano-web
      app/plugins/smime/php/util.php(163): Certificate->verify()\n#5 /usr/share/kopano-webapp/plugins/smime/php/plugin.smim
      e.php(270): verifyOCSP('-----BEGIN CERT...', Array, Array)\n#6 /usr/share/kopano-webapp/plugins/smime/php/plugin.smim
      e.php(386): Pluginsmime->verifyMessage(Resource id #15, 'Content-Type: m...')\n#7 /usr/share/kopano-webapp/plugins/sm
      ime/php/plugin.smime.php(94): Pluginsmime->onSignedMessage(Array)\n#8 /usr/share/kopano-webapp/s in /usr/share/kopano
      -webapp/plugins/smime/php/lib/Der.php on line 68, referer: https://z.advanced-finance.com/webapp/     
      

      What do I need to do?

      1 Reply Last reply Reply Quote 0
      • marty
        marty Kopano (Inactive) last edited by

        Could you share information about your setup?
        OS, php version, WebApp version etc

        https://documentation.kopano.io/deskapp_admin_manual
        http://documentation.kopano.io/webapp_smime_manual
        https://documentation.kopano.io/webapp_admin_manual

        1 Reply Last reply Reply Quote 0
        • mcostan
          mcostan last edited by mcostan

          @marty

          WebApp:
          3.5.8.2339+1314.1
          Kopano Core:
          8.6.9
          Z-Push:
          2.5.0+0-0

          And the latest version of the S/MIME plugin downloaded from the community site yesterday.

          root@mrc-ubz64:~# php --version                                                                                                                                     
          PHP 7.0.33-0+deb9u3 (cli) (built: Mar  8 2019 10:01:24) ( NTS )                                                                                                     
          Copyright (c) 1997-2017 The PHP Group                                                                                                                               
          Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies                                                                                                       
              with Zend OPcache v7.0.33-0+deb9u3, Copyright (c) 1999-2017, by Zend Technologies               
          
          mcostan 1 Reply Last reply Reply Quote 0
          • gabriele
            gabriele @yep_DD last edited by

            @yep_DD
            I am having exactly the same problem

            1 Reply Last reply Reply Quote 0
            • gabriele
              gabriele last edited by

              Note that I am able to view the email from my mobile phone and also if I forward it.

              1 Reply Last reply Reply Quote 0
              • mcostan
                mcostan @mcostan last edited by

                @marty

                I was wondering if you need any further information or log files for this.

                1 Reply Last reply Reply Quote 0
                • marty
                  marty Kopano (Inactive) last edited by

                  By the look at the error it seems you’re missing php-bcmath (or it’s not active)

                  https://documentation.kopano.io/deskapp_admin_manual
                  http://documentation.kopano.io/webapp_smime_manual
                  https://documentation.kopano.io/webapp_admin_manual

                  mcostan 1 Reply Last reply Reply Quote 0
                  • mcostan
                    mcostan @marty last edited by

                    @marty

                    Marty that fixed my problem! Thanks a lot!!

                    Question: should that package be in some dependencies? For example of the S/MIME plugin?

                    Otherwise how do people know that they have to install it?

                    1 Reply Last reply Reply Quote 0
                    • marty
                      marty Kopano (Inactive) last edited by

                      @mcostan This should be the case already:

                      Ubuntu 16.04 example:

                      apt-cache depends kopano-webapp-plugin-smime
                      
                      kopano-webapp-plugin-smime
                        Depends: kopano-webapp
                        Depends: php-kopano-smime
                       |Depends: <php5-curl>
                        Depends: php-curl
                          php7.0-curl
                        Depends: php-xml
                          php7.0-xml
                        Depends: php-bcmath
                          php7.0-bcmath
                        Conflicts: <kopano-webapp-smime>
                        Replaces: <kopano-webapp-smime>
                          kopano-webapp-plugin-smime
                      

                      Did you upgrade your OS and php-version recently? I can imagine some issues there, but that’s something for the admin to double check imo.

                      https://documentation.kopano.io/deskapp_admin_manual
                      http://documentation.kopano.io/webapp_smime_manual
                      https://documentation.kopano.io/webapp_admin_manual

                      1 Reply Last reply Reply Quote 0
                      • mcostan
                        mcostan last edited by

                        I updated PHP a few months back and then installed the latest SMIME plugin.

                        Perhaps it found the old PHP dependency which was installed with the old version of PHP and it thought it was ok…

                        1 Reply Last reply Reply Quote 0
                        • gabriele
                          gabriele last edited by

                          Problem fixed, thanks a lot!

                          1 Reply Last reply Reply Quote 0
                          • itserv
                            itserv last edited by

                            @marty said in SMIME Internal Server Error on Certificate Verify:

                            should be the case already:
                            Ubuntu 16.04 example:

                            I ran into the same problem after upgrading to Debian 10. php-bcmath is not in the depencies for the package:

                            root@kopano:~# apt-cache depends kopano-webapp-plugin-smime
                            kopano-webapp-plugin-smime
                              Depends: kopano-webapp
                              Depends: php-kopano-smime
                             |Depends: <php5-curl>
                              Depends: php-curl
                                php7.3-curl
                              Conflicts: <kopano-webapp-smime>
                              Replaces: <kopano-webapp-smime>
                                kopano-webapp-plugin-smime
                            
                            root@kopano:~# apt-cache depends php-kopano-smime
                            php-kopano-smime
                              Depends: libc6
                             |Depends: php-common
                              Depends: <php5-common>
                            
                            root@kopano:~# apt-cache depends kopano-webapp
                            kopano-webapp
                             |Depends: php7-mapi
                              Depends: <php5-mapi>
                             |Depends: php-json
                                php7.3-json
                              Depends: <php5-json>
                              Depends: php-xml
                                php7.3-xml
                              Depends: php-zip
                                php7.3-zip
                              Depends: php-common
                              Depends: php-mbstring
                                php7.3-mbstring
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • marty
                              marty Kopano (Inactive) last edited by

                              @itserv Dependency is added and will soon be on the download server.

                              https://documentation.kopano.io/deskapp_admin_manual
                              http://documentation.kopano.io/webapp_smime_manual
                              https://documentation.kopano.io/webapp_admin_manual

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post