How do i set an SSL certificate to http-client
$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(); });
thanks, i will try and revert.
thanks, i will try and revert.