A
A
Alexander2021-11-25 12:42:29
ubuntu
Alexander, 2021-11-25 12:42:29

Why can't Guzzle see the letsencrypt certificate file on the Ubuntu server?

I work with the Centrifugo setup , I use this package for Lara .
In order to use SSL, I added the path to the certificate key in .env:

...
CENTRIFUGO_SSL_KEY=/etc/letsencrypt/live/папка_с_именем_домена/privkey.pem


but as a result, when I try to send data with a centrifuge, I get an error that there is no such file:

SSL private key not found:  /etc/letsencrypt/live/папка_с_именем_домена/privkey.pem at /var/www/web-app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:474)


while in tinker it returns true :
file_exists('/etc/letsencrypt/live/папка_с_именем_домена/privkey.pem')


I uploaded the file to the root of the project, in this case everything is OK

Maybe there is a workaround with the location of the certificate key file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexVWill, 2021-11-25
@AlexVWill

Does the client have access rights to the folder and file?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question