WP Manifestindependent plugin directory
manifest / developer / force-localhost-ca

Force localhost CA certificate

WordPress curl requests (used in wp_remote_get, etc) use a CA cert file in WP Core, not the system PHP path. Use this drop in plugin (easiest in /wp-content/mu-plugins) to fix the issue on localhost. Helpful for compatibility with local SSL certs generated by the mkcert command. cURL error 60: SSL certificate: unable to get local issuer certificate

★ 1stars
v1.0.0latest · 6 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/squarecandy/force-localhost-ca/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
force-localhost-ca WordPress curl requests (used in wpremoteget, etc) use an SSL CA cert file in WP Core, not the system PHP default path, or any custom CA you define in php.ini. Use this drop in plugin (easiest in /wp-content/mu-plugins) to fix the issue on localhost. Helpful for compatibility with local SSL certs generated by the mkcert command. Just drop this plugin into /wp-content/mu-plugins and add your custom CA file path to your wp-config.php file like this: Three local TLD endings are supported by default: .local, .localhost and .test. If you need additional endings add them to your wp-config.php file like this: thanks Thanks to @healdev and @Kevinlearynet for initial code and concept for this fix. Original thread: https://github.com/FiloSottile/mkcert/issues/165

Releases

1 release.

Tag
Published
v1.0.0 latest
Sep 23, 2020 6 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.