Local Community

Where does openssl.cnf live in Windows?

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

  • Attach the Local Log.

local-logs.zip (4.6 KB)

Hi @s.doig

I don’t have a Windows set up to be able to look, but I might have a workaround. Can you try the following?

Go to the WP > Settings > MainWP Child > Settings page.

From there, Deselect the Require Unique Security ID option and Click the Save Changes button.

Hi Nick,

The security ID is unrelated to open.ssl (it is a text string), and turning it off would leave MainWP child sites vulnerable.


Hi @s.doig Sorry for my misunderstanding. These threads below might be helpful to you:

Hi Nick-B,

RE: the first link, Local reports the link to openssl.cnf is:
C:\Program Files\Common Files\SSL/openssl.cnf

but the SSL folder does not exist in the Common Files folder, so Local is mistaken.

RE: the second link, this doesn’t contain any solutions.


Hi @s.doig

The link that first one shows that it should be found here: /usr/lib/ssl/openssl.cnf

But I see some additional notes from @DigiRik that might help here:

That is not a Windows path… It is Unix/Mac.

That does not mention a Windows path either. It is Unix/Mac.

@s.doig Sorry for my mistake there.

The openssl.cnf file for Localwp should be found in the following location on Windows:


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.

No worries.

That directory does not contain the openssl.cnf file, only a nginx folder.

Were you able to locate it using the Windows search function?