Slide 49
Slide 49 text
Inject Cert To drupal_http_request()
$opts = array(!
‘ssl’ => array(!
‘CN_match’ => ‘example.com’,!
‘verify_peer’ => TRUE,!
‘allow_self_signed’ => FALSE,!
‘cafile’ => ‘path/to/cert.pem’,!
),!
);!
$context = stream_context_create($opts);!
$ops = array(!
‘context’ => $context,!
);!
$res = drupal_http_request(‘http://example.com’, $ops);