PHP SSL certificate fails

Topics related to system security only
Post Reply
User avatar
arqweryon
Posts: 13
Joined: 26 Jul 2022, 01:00

PHP SSL certificate fails

Post by arqweryon »

I have a F5-422 with TOS 5.0.155-00202 and I installed the Web Server app to try and host pixelfed. Pixelfed requires composer app (https://getcomposer.org/download/) and following instructions, when I try to download anything, it fails due to openssl error:

Code: Select all

The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Retrying...
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
The download failed repeatedly, aborting.
Is there a certificate I should install to be able to access https via TOS?

Thanks,
User avatar
arqweryon
Posts: 13
Joined: 26 Jul 2022, 01:00

Re: PHP SSL certificate fails

Post by arqweryon »

In the end I found the following post: viewtopic.php?f=37&t=2529&p=19150&hilit ... tes#p19150

Which inspired me that maybe it was just a php.ini problem (https://stackoverflow.com/questions/725 ... ify-failed).

So I edited /etc/php.ini
and added:

Code: Select all

[curl]
curl.cainfo = /etc/ssl/certs/ca-certificates.crt

[openssl]
openssl.cafile = /etc/ssl/certs/ca-certificates.crt
And problem was solved. So it just needed pointing to ca-certificates.
Post Reply