[wp-trac] [WordPress Trac] #30667: Allow custom certificate store for WordPress HTTP API
WordPress Trac
noreply at wordpress.org
Thu Dec 11 03:04:25 UTC 2014
#30667: Allow custom certificate store for WordPress HTTP API
---------------------------+-------------------------
Reporter: lukeschlather | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: HTTP API | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
---------------------------+-------------------------
Changes (by rmccue):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
Hi lukeschlather, thanks for the report!
You should be able to do this already through the `http_request_args`
filter:
{{{
add_filter( 'http_request_args', function ( $args ) {
$args['sslcertificates'] = '/path/to/certs.crt';
return $args;
} );
}}}
There's not really a way to tell if the user passed their own in, but
checking if it's `=== ABSPATH . WPINC . '/certificates/ca-bundle.crt'` is
pretty safe.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30667#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list