Could not acept a share

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 31.0.8):
    • 31.0.8
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 3.10.0-1160.119.1.el7.x86_64 x86_64
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • install.php
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • rno

Summary of the issue you are facing:

Could not accept a share invitation

Steps to replicate it (hint: details matter!):

  1. on a share I chose to add it to my nextcloud
  2. on my nextcloud i get an error if i accept

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"aKGaGkRznHdfLIEIGQYG0AAAABE","level":3,"time":"2025.08.17, 11:00:10","remoteAddr":"xxx.xxx.xxx.xx1","user":"cloud","app":"files_sharing","method":"POST","url":"/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/4","message":"Could not accept federated share with id: 4","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0","version":"31.0.8.1","data":{"app":"files_sharing"}}
{"reqId":"aKGajiPV6@9guUJHyZA8uwAAAC8","level":2,"time":"2025.08.17, 11:02:06","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"PHP","method":"POST","url":"/ocm/shares","message":"openssl_verify(): Unknown digest algorithm at /home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/IncomingSignedRequest.php#249","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","data":{"app":"PHP"}}
{"reqId":"aKGajiPV6@9guUJHyZA8uwAAAC8","level":2,"time":"2025.08.17, 11:02:06","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"no app in context","method":"POST","url":"/ocm/shares","message":"signature could not be verified","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","exception":{"Exception":"NCU\\Security\\Signature\\Exceptions\\InvalidSignatureException","Message":"signature issue","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":157,"function":"verify","class":"OC\\Security\\Signature\\Model\\IncomingSignedRequest","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":108,"function":"confirmIncomingRequestSignature","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\Security\\Signature\\Model\\IncomingSignedRequest"},{"__class__":"OC\\OCM\\OCMSignatoryManager"},259200]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php","line":337,"function":"getIncomingSignedRequest","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\OCM\\OCMSignatoryManager"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php","line":102,"function":"getSignedRequest","class":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"addShare","class":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","type":"->","args":["cloud@https://speicher.example1.com","Kampagnen - Campagnes","",13607,"jonas.zuercher@example-share.com","jonas.zuercher","jonas.zuercher@example-share.com","jonas.zuercher",{"name":"webdav","options":{"sharedSecret":"bowxukGVddY97Hb","permissions":"{http://open-cloud-mesh.org/ns}share-permissions"}},"user","file"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController"},"addShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController"},"addShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","addShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"cloud_federation_api.requesthandler.addshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocm/shares"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/IncomingSignedRequest.php","Line":255,"message":"signature could not be verified","exception":{},"signedRequest":{"body":"{\"shareWith\":\"cloud@https:\\/\\/speicher.example1.com\",\"shareType\":\"user\",\"name\":\"Kampagnen - Campagnes\",\"resourceType\":\"file\",\"description\":\"\",\"providerId\":13607,\"owner\":\"jonas.zuercher@example-share.com\",\"ownerDisplayName\":\"jonas.zuercher\",\"sharedBy\":\"jonas.zuercher@example-share.com\",\"sharedByDisplayName\":\"jonas.zuercher\",\"protocol\":{\"name\":\"webdav\",\"options\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"permissions\":\"{http:\\/\\/open-cloud-mesh.org\\/ns}share-permissions\"}}}","digest":"SHA-512=Vh0yA2pJX9Rh+D8Pyk9UaddFhbAyE2i/nYvqjyQ80m5pRYBW2uPyfdynYElTvx+0qpTbWVhpJn1lH/kcQOx1MQ==","digestAlgorithm":"SHA-512","signingElements":{"keyId":"https://example-share.com/ocm#signature","algorithm":"rsa-sha512","headers":"(request-target) content-length date digest host","signature":"lZqTD4SaC5oZ3wSD8lleTB205ZxmZwHenzZlIN6LBOvV3/27YX1p+3IMtiS707pI0ZkgoFHm6RcszfnYG9t2qlECG+RMBJnFiyftTQkzFcTEE9OOoy75xDcK7GJPr/nDSmyWRaQcfIEnVQj9+9S5pdv/vSJ0Xsmej61vltRYGm5Q8qfitTPjgMdIxeYu2d9zP9ma+vLwDJ06S0krDc7wn1pcb63K3Lk5YV2z5DL/AgwnEXIJSoLX/VXAYIbdjpQxs3oZaLpP4qaN1StwW8Dxl01BMrERTiPVhlekt+DEUWY2Fc2g55+fbLcC6p3KfAKQ3glPuZi2bNL4Y/2TUNfjfQ=="},"signatureData":["(request-target): post /ocm/shares","content-length: 468","date: Sun, 17 Aug 2025 09:02:06 GMT","digest: SHA-512=Vh0yA2pJX9Rh+D8Pyk9UaddFhbAyE2i/nYvqjyQ80m5pRYBW2uPyfdynYElTvx+0qpTbWVhpJn1lH/kcQOx1MQ==","host: speicher.example1.com"],"signature":"lZqTD4SaC5oZ3wSD8lleTB205ZxmZwHenzZlIN6LBOvV3/27YX1p+3IMtiS707pI0ZkgoFHm6RcszfnYG9t2qlECG+RMBJnFiyftTQkzFcTEE9OOoy75xDcK7GJPr/nDSmyWRaQcfIEnVQj9+9S5pdv/vSJ0Xsmej61vltRYGm5Q8qfitTPjgMdIxeYu2d9zP9ma+vLwDJ06S0krDc7wn1pcb63K3Lk5YV2z5DL/AgwnEXIJSoLX/VXAYIbdjpQxs3oZaLpP4qaN1StwW8Dxl01BMrERTiPVhlekt+DEUWY2Fc2g55+fbLcC6p3KfAKQ3glPuZi2bNL4Y/2TUNfjfQ==","signatory":{"keyId":"https://example-share.com/ocm#signature","publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr/o6si7NG+SXkVYD7vSQ\nrTsRkjnSQKKX/mFmLHC3Wa9NDGm0peEUJs8zLaZxssY3gLECusw5jWWl6fRe2RO5\nrMKv2MYK/AyQq4NBXSC8F9uoKH4XUHE8DGWi99Ypa7dYWYMIMA8jR6VQgmRn22NK\nyy2BoGqgdq4x0/y3K4qj5bODhzBdrqTILqXLQD+rEI6OAGKfoP5jZU8866G/Q2Tx\nbhDx89JF4H9AhPYCUUCtA2hqD0puX4A49ltvymtaHxTbb7SjmbImfTZ/cRp3TfZC\nqQtcIGDDUSlGqC10JAmGbsmjIMym/UszUJ6A/zQwQ8g2qeS4KFU+QiJV7v6L/vvv\nDQIDAQAB\n-----END PUBLIC KEY-----\n"},"options":{"algorithm":"rsa-sha512","digestAlgorithm":"SHA-512","extraSignatureHeaders":[],"ttl":300,"dateHeader":"D, d M Y H:i:s T","ttlSignatory":259200,"bodyMaxSize":50000},"origin":"example-share.com"},"signatoryManager":"OC\\OCM\\OCMSignatoryManager","CustomMessage":"signature could not be verified"}}
{"reqId":"aKGajiPV6@9guUJHyZA8uwAAAC8","level":2,"time":"2025.08.17, 11:02:06","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"cloud_federation_api","method":"POST","url":"/ocm/shares","message":"wrongly signed request","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","exception":{"Exception":"NCU\\Security\\Signature\\Exceptions\\InvalidSignatureException","Message":"signature issue","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":157,"function":"verify","class":"OC\\Security\\Signature\\Model\\IncomingSignedRequest","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":108,"function":"confirmIncomingRequestSignature","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\Security\\Signature\\Model\\IncomingSignedRequest"},{"__class__":"OC\\OCM\\OCMSignatoryManager"},259200]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php","line":337,"function":"getIncomingSignedRequest","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\OCM\\OCMSignatoryManager"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php","line":102,"function":"getSignedRequest","class":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"addShare","class":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","type":"->","args":["cloud@https://speicher.example1.com","Kampagnen - Campagnes","",13607,"jonas.zuercher@example-share.com","jonas.zuercher","jonas.zuercher@example-share.com","jonas.zuercher",{"name":"webdav","options":{"sharedSecret":"bowxukGVddY97Hb","permissions":"{http://open-cloud-mesh.org/ns}share-permissions"}},"user","file"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController"},"addShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController"},"addShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","addShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"cloud_federation_api.requesthandler.addshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocm/shares"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/IncomingSignedRequest.php","Line":255,"message":"wrongly signed request","exception":{},"CustomMessage":"wrongly signed request"}}
{"reqId":"aKGajiPV6@9guUJHyZA8uwAAAC8","level":2,"time":"2025.08.17, 11:02:06","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"cloud_federation_api","method":"POST","url":"/ocm/shares","message":"incoming request exception","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","exception":{"Exception":"NCU\\Security\\Signature\\Exceptions\\IncomingRequestException","Message":"Invalid signature","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php","line":102,"function":"getSignedRequest","class":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"addShare","class":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","type":"->","args":["cloud@https://speicher.example1.com","Kampagnen - Campagnes","",13607,"jonas.zuercher@example-share.com","jonas.zuercher","jonas.zuercher@example-share.com","jonas.zuercher",{"name":"webdav","options":{"sharedSecret":"bowxukGVddY97Hb","permissions":"{http://open-cloud-mesh.org/ns}share-permissions"}},"user","file"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController"},"addShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\CloudFederationAPI\\Controller\\RequestHandlerController"},"addShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\CloudFederationAPI\\Controller\\RequestHandlerController","addShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"cloud_federation_api.requesthandler.addshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocm/shares"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/httpd/vhosts/example1.com/http-cloud/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php","Line":351,"message":"incoming request exception","exception":{},"CustomMessage":"incoming request exception"}}
{"reqId":"aKGajkNMFph-aynPrsvgpQAAABo","level":2,"time":"2025.08.17, 11:02:07","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"PHP","method":"POST","url":"/ocs/v2.php/cloud/shares?format=json","message":"openssl_sign(): Unknown digest algorithm at /home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php#177","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","data":{"app":"PHP"}}
{"reqId":"aKGajkNMFph-aynPrsvgpQAAABo","level":3,"time":"2025.08.17, 11:02:07","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"no app in context","method":"POST","url":"/ocs/v2.php/cloud/shares?format=json","message":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","exception":{"Exception":"Exception","Message":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\FederatedFileSharing\\Controller\\RequestHandlerController"},"createShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\FederatedFileSharing\\Controller\\RequestHandlerController","createShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.federatedfilesharing.requesthandler.createshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php","line":49,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/cloud/shares"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v2.php","line":7,"args":["/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php"],"function":"require_once"}],"File":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","Line":146,"Previous":{"Exception":"TypeError","Message":"base64_encode(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php","line":184,"function":"base64_encode","args":[null]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":208,"function":"sign","class":"OC\\Security\\Signature\\Model\\OutgoingSignedRequest","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":231,"function":"getOutgoingSignedRequest","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\OCM\\OCMSignatoryManager"},"{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}","post","https://example-share.com/ocm/notifications"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Federation/CloudFederationProviderManager.php","line":236,"function":"signOutgoingRequestIClientPayload","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\OCM\\OCMSignatoryManager"},{"headers":{"content-type":"application/json"},"timeout":10,"connect_timeout":10,"verify":true,"body":"{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}"},"post","https://example-share.com/ocm/notifications"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Federation/CloudFederationProviderManager.php","line":218,"function":"prepareOcmPayload","class":"OC\\Federation\\CloudFederationProviderManager","type":"->","args":["https://example-share.com/ocm/notifications",{"headers":{"content-type":"application/json"},"timeout":10,"connect_timeout":10,"verify":true,"body":"{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Federation/CloudFederationProviderManager.php","line":161,"function":"postOcmPayload","class":"OC\\Federation\\CloudFederationProviderManager","type":"->","args":["*** sensitive parameters replaced ***","https://example-share.com/ocm/notifications","{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/External/Manager.php","line":529,"function":"sendNotification","class":"OC\\Federation\\CloudFederationProviderManager","type":"->","args":["*** sensitive parameters replaced ***",{"__class__":"OC\\Federation\\CloudFederationNotification"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/External/Manager.php","line":475,"function":"tryOCMEndPoint","class":"OCA\\Files_Sharing\\External\\Manager","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***","13607","accept"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/External/Manager.php","line":364,"function":"sendFeedbackToRemote","class":"OCA\\Files_Sharing\\External\\Manager","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***","13607","accept"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php","line":181,"function":"acceptShare","class":"OCA\\Files_Sharing\\External\\Manager","type":"->","args":[5,"*** sensitive parameters replaced ***"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php","line":115,"function":"shareReceived","class":"OCA\\FederatedFileSharing\\OCM\\CloudFederationProviderFiles","type":"->","args":[{"__class__":"OC\\Federation\\CloudFederationShare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"createShare","class":"OCA\\FederatedFileSharing\\Controller\\RequestHandlerController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\FederatedFileSharing\\Controller\\RequestHandlerController"},"createShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\FederatedFileSharing\\Controller\\RequestHandlerController"},"createShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\FederatedFileSharing\\Controller\\RequestHandlerController","createShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.federatedfilesharing.requesthandler.createshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php","line":49,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/cloud/shares"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v2.php","line":7,"args":["/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php"],"function":"require_once"}],"File":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php","Line":184},"message":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184","exception":{},"CustomMessage":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184"}}
{"reqId":"aKGak6VLpu@QMgFMpWNOnwAAAEM","level":2,"time":"2025.08.17, 11:02:12","remoteAddr":"xxx.xxx.xxx.xx1","user":"cloud","app":"PHP","method":"POST","url":"/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/5","message":"openssl_sign(): Unknown digest algorithm at /home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php#177","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0","version":"31.0.8.1","data":{"app":"PHP"}}
{"reqId":"aKGak6VLpu@QMgFMpWNOnwAAAEM","level":3,"time":"2025.08.17, 11:02:12","remoteAddr":"xxx.xxx.xxx.xx1","user":"cloud","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/5","message":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0","version":"31.0.8.1","exception":{"Exception":"Exception","Message":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\RemoteController"},"acceptShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\RemoteController","acceptShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"5","_route":"ocs.files_sharing.remote.acceptshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php","line":49,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/files_sharing/api/v1/remote_shares/pending/5"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v2.php","line":7,"args":["/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php"],"function":"require_once"}],"File":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","Line":146,"Previous":{"Exception":"TypeError","Message":"base64_encode(): Argument #1 ($string) must be of type string, null given","Code":0,"Trace":[{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php","line":184,"function":"base64_encode","args":[null]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":208,"function":"sign","class":"OC\\Security\\Signature\\Model\\OutgoingSignedRequest","type":"->","args":[]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/SignatureManager.php","line":231,"function":"getOutgoingSignedRequest","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\OCM\\OCMSignatoryManager"},"{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}","post","https://example-share.com/ocm/notifications"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Federation/CloudFederationProviderManager.php","line":236,"function":"signOutgoingRequestIClientPayload","class":"OC\\Security\\Signature\\SignatureManager","type":"->","args":[{"__class__":"OC\\OCM\\OCMSignatoryManager"},{"headers":{"content-type":"application/json"},"timeout":10,"connect_timeout":10,"verify":true,"body":"{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}"},"post","https://example-share.com/ocm/notifications"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Federation/CloudFederationProviderManager.php","line":218,"function":"prepareOcmPayload","class":"OC\\Federation\\CloudFederationProviderManager","type":"->","args":["https://example-share.com/ocm/notifications",{"headers":{"content-type":"application/json"},"timeout":10,"connect_timeout":10,"verify":true,"body":"{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Federation/CloudFederationProviderManager.php","line":161,"function":"postOcmPayload","class":"OC\\Federation\\CloudFederationProviderManager","type":"->","args":["https://example-share.com/","https://example-share.com/ocm/notifications","{\"notificationType\":\"SHARE_ACCEPTED\",\"resourceType\":\"file\",\"providerId\":\"13607\",\"notification\":{\"sharedSecret\":\"bowxukGVddY97Hb\",\"message\":\"Recipient accept the share\"}}"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/External/Manager.php","line":529,"function":"sendNotification","class":"OC\\Federation\\CloudFederationProviderManager","type":"->","args":["https://example-share.com/",{"__class__":"OC\\Federation\\CloudFederationNotification"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/External/Manager.php","line":475,"function":"tryOCMEndPoint","class":"OCA\\Files_Sharing\\External\\Manager","type":"->","args":["https://example-share.com/","bowxukGVddY97Hb","13607","accept"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/External/Manager.php","line":364,"function":"sendFeedbackToRemote","class":"OCA\\Files_Sharing\\External\\Manager","type":"->","args":["https://example-share.com/","bowxukGVddY97Hb","13607","accept"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/apps/files_sharing/lib/Controller/RemoteController.php","line":64,"function":"acceptShare","class":"OCA\\Files_Sharing\\External\\Manager","type":"->","args":[5]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"acceptShare","class":"OCA\\Files_Sharing\\Controller\\RemoteController","type":"->","args":[5]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\RemoteController"},"acceptShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\RemoteController"},"acceptShare"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\RemoteController","acceptShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"5","_route":"ocs.files_sharing.remote.acceptshare"}]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php","line":49,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/files_sharing/api/v1/remote_shares/pending/5"]},{"file":"/home/httpd/vhosts/example1.com/http-cloud/ocs/v2.php","line":7,"args":["/home/httpd/vhosts/example1.com/http-cloud/ocs/v1.php"],"function":"require_once"}],"File":"/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php","Line":184},"message":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184","exception":{},"CustomMessage":"base64_encode(): Argument #1 ($string) must be of type string, null given in file '/home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/OutgoingSignedRequest.php' line 184"}}

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "logfile": "\/home\/httpd\/vhosts\/***REMOVED SENSITIVE VALUE***\/data\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Berlin",
        "dbtype": "mysql",
        "version": "31.0.8.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "default_phone_region": "CH",
        "logdateformat": "Y.m.d, H:i:s",
        "default_language": "de",
        "default_locale": "de_CH",
        "syslog_tag": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "theme": "",
        "reference_opengraph": false,
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "piwik",
            "richdocuments",
            "csp_editor"
        ],
        "memories.exiftool_no_local": true,
        "memories.vod.path": "\/http-cloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.db.triggers.fcu": true,
        "maintenance_window_start": 1
    }
}

{"reqId":"aKGajiPV6@9guUJHyZA8uwAAAC8","level":2,"time":"2025.08.17, 11:02:06","remoteAddr":"xxx.xxx.xxx.xx2","user":"--","app":"PHP","method":"POST","url":"/ocm/shares","message":"openssl_verify(): Unknown digest algorithm at /home/httpd/vhosts/example1.com/http-cloud/lib/private/Security/Signature/Model/IncomingSignedRequest.php#249","userAgent":"Nextcloud Server Crawler","version":"31.0.8.1","data":{"app":"PHP"}}

Linux 3.10.0-1160.119.1.el7.x86_64 x86_64

My wild guess, given your kernel version which indicates ancient RHEL7, is that maybe OpenSSL doesn’t support the crypto combo required.

I tested to connect with another server which worked. Is it possible that the problem lies on the other server?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.