MainWP Dashboard on Local WP can’t connect to a remote child site.
When connecting a site to my localhost MainWP (powered through WP Local), I get a 500 error for /wp-admin/admin-ajax.php.
Debug gives an error:
PHP Fatal error: Uncaught TypeError: openssl_pkey_get_details(): Argument #1 ($key) must be of type OpenSSLAsymmetricKey, bool given in C:\Users\Steve\Local Sites\mainwp-volunteer\app\public\wp-content\plugins\mainwp\class\class-mainwp-manage-sites-view.php:1550
If I visit MainWP Advanced Settings, OpenSSL.cnf location is set to C:\Program Files\Common Files\SSL\openssl.cnf
However, the SSL folder does not exist in C:\Program Files\Common Files\
Where can I find the Local WP openssl.cnf file in Windows?
Troubleshooting Questions
Just my MainWP Dashboard site.
System Details
Which version of Local is being used? 6.0
What Operating System (OS) and OS version is being used?
Windows 11
Note that <username> should be replaced with your Windows user account name.
If you still can’t find that directory, can you try searching for it using Windows Search? You should be able to search openssl.cnf after pressing the Windows key.
Hi @s.doig - I agree with you re: using MainWP, but this isn’t an error I’ve ever heard mentioned by other users.
The path Nick mentioned above is just the path to wherever Local is installed on your machine. I can’t tell you where that is, unfortunately. I am also using a 64-bit version of Windows on my machine - below is a picture of my C:\ drive. Local and the files it ship with live in Program Files (x86)\Local, which is where other apps on my machine (Chrome) are installed too. Have you checked your Program Files folder? What does your C:\ look like if you’re not seeing Local there?
and updating MainWP > Advanced > OpenSSL.cnf location with that location means I can now connect remote sites to my local MainWP dashboard running on LocalWP.
Awesome, I’m glad you got it working! And apologies for the confusion on hunting that down, troubleshooting those file paths (especially on Windows, for some reason) can be a pain.