国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

SSL certificate to http-client

asareStephen2026

問題描述

How do i set an SSL certificate to http-client

718 1 2
1個(gè)回答

walkor 打賞
$http = new \Workerman\Http\Client([
    'context' => [
        'ssl' => [
            'local_cert'        => '/your/path/to/pemfile',
            'passphrase'        => 'your_pem_passphrase',
            'verify_peer' => true,
            'verify_peer_name' => true,
        ],
    ]]);
$http->get('https://example.com/', function ($response) {
    echo $response->getBody();
});
??