On the System Report, the oft-seen errors that result from httprl's requirements hook check can be seen in the case where a developer is working on a site that uses https that uses a self-signed cert, and php 5.6 or greater. This is because php's streaming functions require valid certificates for https connections. It's not really possible to fix the problem that I can see, including all the suggestions in the issues about configuration settings.

This produces some annoying results, such as the Configuration admin page being extremely slow, since that page runs hook_requirements(). I've looked through the module and I don't see documentation about how requests to self are used.

An feature request that could help avoid this 'bug' could be to have a development-only configuration for dev servers with self-signed certificates, that places configuration options into the stream that set verify_peer and verify_peer_name to false and maybe set allow_self_signed to true, if that's necessary. That way the full functionality could be tested on a dev site that uses self-signed certificates.

This issue has been brought up within some other issues, but I thought it deserves a ticket.

CommentFileSizeAuthor
#5 httprl-n2831540-5.patch604 bytesdamienmckenna

Comments

bob.hinrichs created an issue. See original summary.

damienmckenna’s picture

Issue tags: +PHP 5.6
damienmckenna’s picture

Component: Code » Documentation
Priority: Minor » Normal

This is currently possible thanks to #2780147: SSL cert problems when using PHP 5.6+. However, there's no documentation for it.

In order to make it work you have to add the following to your settings.php file:

// Disable SSL cert validation.
$conf['drupal_ssl_context_options'] = array(
  'verify_peer' => FALSE,
);
damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new604 bytes

Here's a patch to add some instructions to the README.txt file.

damienmckenna’s picture

Of course this uses a different variable than the proposed variable for core in #2761345: PHP 5.6, 7 - drupal_http_request() behavior changes for SSL using self-signed certs.

mikeytown2’s picture

Status: Needs review » Fixed

Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.