-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error generating certificate with OpenSSL to sign documents #3773
Comments
Could you try to bump your OpenSSL version and check again? |
The same error here with us. RHEL 9.4 |
@JBBERLIN77 is you getting the same error at your log? I can't reproduce this, I haven't the same environment and haven't any customer with this problem to help us |
yep, here my two error msg: The 1st:
and the 2nd:
|
I have investigated this issue further and I think the problem is with RHEL 9 / Rocky Linux 9 and how OpenSSL handles the certificates on the OS The OpenSSL tries to write the user certificates in /etc/pki/CA/certs where the apache user (www user) has no write access (which is correct) |
I didn't check the C code of the OpenSSL PHP extension, but the function The point of the LibreSign code is this: libresign/lib/Handler/CertificateEngine/OpenSslHandler.php Lines 84 to 91 in be41c77
A possible way to check what's happening is by debugging the code execution step by step, but it is necessary to do this in an environment similar to the one you are using. |
Describe the bug
Can't get documents signed in through web application
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Document should be signed by the end of the steps
Screenshots
If applicable, add screenshots to help explain your problem.
Environment information (please complete the following information):
{"reqId":"ZwAm2MlNNCnUvFjphbqV4gAAAAA","level":3,"time":"2024-10-04T17:33:12+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"POST","url":"/ocs/v2.php/apps/libresign/api/v1/sign/uuid/1a2c53e0-e5f3-4edc-ba63-4e566806dc84","message":"openssl_csr_sign(): Failed to sign it at /var/www/html/nextcloud/apps/libresign/lib/Handler/CertificateEngine/OpenSslHandler.php#102","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0","version":"29.0.6.1","data":{"app":"PHP"}}
The text was updated successfully, but these errors were encountered: