Signing a PDF does not work. An error occurs after trying to sign.
I have completely uninstalled, reinstalled LibreSign, checked the dependencies and regenerated all certificates. Still, the signing process errors out.
scriptName":"/ocs/v2.php","message":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler::extractTimestampData(): Argument #1 ($decoded) must be of type array, null given, called in /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php on line 121","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0","version":"33.0.0.16","exception":{"Exception":"TypeError","Message":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler::extractTimestampData(): Argument #1 ($decoded) must be of type array, null given, called in /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php on line 121","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php","line":121,"function":"extractTimestampData","class":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler","type":"->","args":[null,[]]},{"file":"/var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php","line":101,"function":"processSignature","class":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler","type":"->","args":[null,null]},{"file":"/var/www/html/custom_apps/libresign/lib/Handler/SignEngine/SignEngineHandler.php","line":229,"function":"getCertificateChain","class":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler","type":"->","args":[null]},{"file":"/var/www/html/custom_apps/libresign/lib/Service/SignFileService.php","line":630,"function":"getLastSignedDate","class":"OCA\\Libresign\\Handler\\SignEngine\\SignEngineHandler","type":"->","args":[]},{"file":"/var/www/html/custom_apps/libresign/lib/Service/SignFileService.php","line":442,"function":"signSequentially","class":"OCA\\Libresign\\Service\\SignFileService","type":"->","args":[[{"file":{"__class__":"OCA\\Libresign\\Db\\File","id":19},"signRequest":{"__class__":"OCA\\Libresign\\Db\\SignRequest","id":19}}]]},{"file":"/var/www/html/custom_apps/libresign/lib/Service/SignFileService.php","line":435,"function":"executeSigningStrategy","class":"OCA\\Libresign\\Service\\SignFileService","type":"->","args":[[{"file":{"__class__":"OCA\\Libresign\\Db\\File","id":19},"signRequest":{"__class__":"OCA\\Libresign\\Db\\SignRequest","id":19}}]]},{"file":"/var/www/html/custom_apps/libresign/lib/Controller/SignFileController.php","line":224,"function":"sign","class":"OCA\\Libresign\\Service\\SignFileService","type":"->","args":[]},{"file":"/var/www/html/custom_apps/libresign/lib/Controller/SignFileController.php","line":165,"function":"signSync","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":[{"__class__":"OCA\\Libresign\\Db\\File","id":19},[{"documentElementId":16,"profileNodeId":1211},{"documentElementId":17,"profileNodeId":1211},{"documentElementId":18,"profileNodeId":1211},{"documentElementId":19,"profileNodeId":1211},{"documentElementId":20,"profileNodeId":1211}],{"user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0","remote-address":"172.18.0.11"}]},{"file":"/var/www/html/custom_apps/libresign/lib/Controller/SignFileController.php","line":112,"function":"sign","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":["password",[{"documentElementId":16,"profileNodeId":1211},{"documentElementId":17,"profileNodeId":1211},{"documentElementId":18,"profileNodeId":1211},{"documentElementId":19,"profileNodeId":1211},{"documentElementId":20,"profileNodeId":1211}],"","GDrq98x9L@g^TXed4J0I",null,"4724fbd6-9da3-4699-9df9-49b99f9c8320",true]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"signUsingUuid","class":"OCA\\Libresign\\Controller\\SignFileController","type":"->","args":["4724fbd6-9da3-4699-9df9-49b99f9c8320","password",[{"documentElementId":16,"profileNodeId":1211},{"documentElementId":17,"profileNodeId":1211},{"documentElementId":18,"profileNodeId":1211},{"documentElementId":19,"profileNodeId":1211},{"documentElementId":20,"profileNodeId":1211}],"","GDrq98x9L@g^TXed4J0I",true]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Libresign\\Controller\\SignFileController"},"signUsingUuid"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Libresign\\Controller\\SignFileController"},"signUsingUuid"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Libresign\\Controller\\SignFileController","signUsingUuid",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.libresign.signfile.signusinguuid","apiVersion":"v1","uuid":"4724fbd6-9da3-4699-9df9-49b99f9c8320"}]},{"file":"/var/www/html/ocs/v1.php","line":61,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/libresign/api/v1/sign/uuid/4724fbd6-9da3-4699-9df9-49b99f9c8320"]},{"file":"/var/www/html/ocs/v2.php","line":8,"args":["/var/www/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php","Line":165,"message":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler::extractTimestampData(): Argument #1 ($decoded) must be of type array, null given, called in /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php on line 121","exception":"{\"class\":\"TypeError\",\"message\":\"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler::extractTimestampData(): Argument #1 ($decoded) must be of type array, null given, called in /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php on line 121\",\"code\":0,\"file\":\"/var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php:165\",\"trace\":\"#0 /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php(121): OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler->extractTimestampData(NULL, Array)\\n#1 /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php(101): OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler->processSignature(Resource id #152, '\\xFE\\xFF\\x00T\\x00i\\x00t\\x00e\\x00l')\\n#2 /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/SignEngineHandler.php(229): OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler->getCertificateChain(Resource id #152)\\n#3 /var/www/html/custom_apps/libresign/lib/Service/SignFileService.php(630): OCA\\Libresign\\Handler\\SignEngine\\SignEngineHandler->getLastSignedDate()\\n#4 /var/www/html/custom_apps/libresign/lib/Service/SignFileService.php(442): OCA\\Libresign\\Service\\SignFileService->signSequentially(Array)\\n#5 /var/www/html/custom_apps/libresign/lib/Service/SignFileService.php(435): OCA\\Libresign\\Service\\SignFileService->executeSigningStrategy(Array)\\n#6 /var/www/html/custom_apps/libresign/lib/Controller/SignFileController.php(224): OCA\\Libresign\\Service\\SignFileService->sign()\\n#7 /var/www/html/custom_apps/libresign/lib/Controller/SignFileController.php(165): OCA\\Libresign\\Controller\\SignFileController->signSync(Object(OCA\\Libresign\\Db\\File), Array, Array)\\n#8 /var/www/html/custom_apps/libresign/lib/Controller/SignFileController.php(112): OCA\\Libresign\\Controller\\SignFileController->sign('password', Array, '', '################', NULL, '##############...', true)\\n#9 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\\Libresign\\Controller\\SignFileController->signUsingUuid('4724fbd6-9da3-4...', 'password', Array, '', 'GDrq98x9L@g^TXe...', true)\\n#10 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Libresign\\Controller\\SignFileController), 'signUsingUuid')\\n#11 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Libresign\\Controller\\SignFileController), 'signUsingUuid')\\n#12 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OCA\\\\Libresign\\\\C...', 'signUsingUuid', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#13 /var/www/html/ocs/v1.php(61): OC\\Route\\Router->match('/ocsapp/apps/li...')\\n#14 /var/www/html/ocs/v2.php(8): require_once('/var/www/html/o...')\\n#15 {main}\"}","CustomMessage":"OCA\\Libresign\\Handler\\SignEngine\\Pkcs12Handler::extractTimestampData(): Argument #1 ($decoded) must be of type array, null given, called in /var/www/html/custom_apps/libresign/lib/Handler/SignEngine/Pkcs12Handler.php on line 121"}}
Describe the bug
Signing a PDF does not work. An error occurs after trying to sign.
To reproduce
I have completely uninstalled, reinstalled LibreSign, checked the dependencies and regenerated all certificates. Still, the signing process errors out.
Expected behavior
No response
Screenshots
No response
Environment information
Additional context
No response