LibreSign 9.3.2 not working in Nextcloud 29.0.7
Describe the bug
I'm not able to install the dependencies with OpenSSL and CFSSL certificate.
This does not work via UI nor via the console:
sudo -u nextcloud php8.3 --define apc.enable_cli=1 occ libresign:install --all --verbose
No output no results.
To Reproduce This does not work via UI nor via the console: UI: Admin-> LibreSign -> Download bianaries -> Validate setup -> (no results)
Console:
sudo -u nextcloud php8.3 --define apc.enable_cli=1 occ libresign:install --all --verbose
No output no results.
Expected behavior It should work, with previous version was working few days ago.
Environment information (please complete the following information):
- OS: Debian 11
- Browser: Firefox
- LibreSign Version 9.3.2
- Nextcloud Server Version 29.0.7
- Logs (get the entries from nextcloud.log related with LibreSign i.e
tail -f data/nextcloud.log|grep libresign)
Hi, Could you check if have any entry at nextcfloud.log file related to LibreSign? I can't reproduce this.
@vitormattos hi sorry, forgot to add the logs:
tail -f /var/log/nextcloud/nextcloud.log|grep libresign {"reqId":"q1bDQLIpgz41w8sONIvS","level":3,"time":"2024-09-23T16:49:23+00:00","remoteAddr":"2a02:3102:4c35:800:711b:bb02:22e3:670c","user":"predrag","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
Hope this helps.
Hi @vitormattos did you managed to reproduce the error?
Looking more to the row that generated this log:
https://github.com/LibreSign/libresign/blob/stable29/lib/Handler/CertificateEngine/CfsslHandler.php#L395
I think that could be two items:
- The backtick operator didn't worked, maybe was blocked at your environment.
- The path of CFSSL is getting problems or PHP can't execute the CFSSL binary. You can get this setting using the follow command:
occ config:app:get libresign cfssl_bin
Could you test using OpenSSL and check if will get the same error? This error occur only with CFSSL.
@vitormattos unfortunately both are not working and no new log. Please see below
$ tail -f /var/log/nextcloud/nextcloud.log|grep libresign
{"reqId":"9L8bGxAjCJHute4BQtek","level":3,"time":"2024-10-27T18:57:20+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"QELItdS7ZJslBWsPgk95","level":3,"time":"2024-10-27T18:57:24+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"8wDZoAim88lv8Et4Pa9B","level":3,"time":"2024-10-27T18:57:32+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"45tLDUUba71vkVbQJzor","level":3,"time":"2024-10-27T18:58:18+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"pBBz5Dv90mIh8CnwkZX6","level":3,"time":"2024-10-27T18:58:34+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"gc40SidJWikLoCDqvp5b","level":3,"time":"2024-10-27T19:03:12+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"QnQGtmP6MA1qTJzBz35Y","level":3,"time":"2024-10-27T19:05:37+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"uUSGzYJ5PUb3BFDsVLHJ","level":3,"time":"2024-10-27T19:06:01+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
{"reqId":"kx1XOrucThG2UHJ3bvIo","level":3,"time":"2024-10-27T19:08:03+00:00","remoteAddr":"2.215.244.96","user":"[username]","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/libresign/api/v1/admin/certificate","message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"trim(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":395,"function":"trim"},{"file":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","line":120,"function":"checkBinaries","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/apps/libresign/lib/Controller/AdminController.php","line":174,"function":"configureCheck","class":"OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"loadCertificate","class":"OCA\\Libresign\\Controller\\AdminController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php","Line":395},"message":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395","exception":{},"CustomMessage":"trim(): Argument #1 ($string) must be of type string, null given in file '/var/www/nextcloud/apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php' line 395"}}
Hi @stepcellwolf I made improvements at two PR and I think that now you will have a best feedback about what's happening. This will come at next release.
@stepcellwolf I will close this issue as solved.
Could you check again at the newest release of LibreSign?
If this issue persists, don't hesitate to open a new issue making reference to this.
[!NOTE]
If you like this app, don't hesitate to help us
Ways to help this project:
- Creating a very nice review of this project at:
- social networks like LinkedIn, Instagram, etc and putting the @LibreSign and @LibreCodeCoop
- AlternativeTo https://alternativeto.net/software/libresign/
- Nextcloud apps store: https://apps.nextcloud.com/apps/libresign
- Sponsoring the development by GitHub sponsor https://github.com/sponsors/LibreSign
- helping the translations on Transifex
- contacting us to have Enterprise support: https://libresign.coop