> Am 07.09.2022 um 11:26 schrieb Landry Breuil <landry@openbsd.org>:
>
> Le Wed, Sep 07, 2022 at 11:10:14AM +0200, Omar Polo a écrit :
>>
>> I'm having an issue (that is 100% PEBCAK) with php-curl that seems to
>> be unable to resolve hostnames, but this is not an issue with the port
>> itself: even a simple php script like:
>>
>> $ch = curl_init("https://www.openbsd.org");
>> var_dump(curl_exec($ch));
>> var_dump(curl_error($ch));
>>
>> yields "Could not resolve host: www.openbsd.org".
>
> i think you need etc/resolv.conf in the chroot, but not 100% sure.
Yes, and probably also a copy of /etc/ssl/cert.pem to be able to verify HTTPS certificates.
Also don't forget to update these copies when the originals change, e.g. after a sysupgrade.
If you are using a command line script to test this, then these note would probably not apply though.
HTH
Mike
No comments:
Post a Comment