oravela
Forum Replies Created
-
In case this helps anyone else.
Everything seems to be working after I changed my siteurl and home in wp_options to be my web site address without www
Thank you for getting back to me. I am almost there but have one hopefully final error to overcome.
I have made some progress and can now install, uninstall and re-install your plugin on my two web hosting packages. Regenerating the certificates also works.
I am using your plugin to allow my wordpress users to automatically log in to a wiki. On my old web server, the log in works fine from wordpress to the wiki and when I change the client to point to the wiki on the new web server that also works. Which means I believe the wiki is setup ok on both web servers as old web server wordpress can log in to both old and new web server wikis using your plugin.
However no matter what I do I cannot get my wordpress on the new web server to log in to either the old wiki on the old web server or the new wiki on the new web server.
The error reported at the wiki end is as below. I have checked the user details on both wordpress sites and all details are the same except for user_id. user_login and user_email are identical on both wordpress sites. Can a different user_id cause an error?
Any ideas on what I can check to overcome this error? What can I check in the wordpress logs to identify the cause/difference between the two sites?
Many thanks, Mark
[Y5n3FyFO45RrVRrG06djUQAA6RA] /yellowbook_test/index.php/Special:OAuth2Client/callback?code=adra82riptvidwjvwtzr38nf6g9umftl1ried1u4&iframe=break League\OAuth2\Client\Provider\Exception\IdentityProviderException: invalid_request
So I discovered that on my hosting site openssl_pkey_new(); is returning FALSE and this is then having a knock on impact resulting in the errors when trying to generate private and public keys. I thought you might like to know in case you want to tidy up the error handling in functions.php
Also my hosting site developers have now come back to me to say that the hosting environment does not support OpenSSL.
Do you happen to know any other options open to me if I can’t use OpenSSL? I’m not looking forward to having to do a full migration to another hosting environment.
As always, really appreciate your help/input on this.
I have had confirmation that my OpenSSL.cnf file exists and is located at /etc/pki/tls/openssl.cnf
Is that location ok for your plugin?
I also use the UpdraftPlus plugin which is working fine. Do you know if there are any compatibility issues between this one and your plugin?
Still trying to get your plugin working so any input would be amazing.
Many thanks.
Thanks for looking into this.
My hosting environment is:
Linux cweb2-c17937.website-staging.uk 4.18.0 #1 SMP Thu Sep 23 18:26:47 MSK 2021 x86_64So not windows OS.
Is there something I can check to see if the OpenSSL.cnf file is accessible? Where would I find it?
Thanks again.
Even in PHP 7.4 I still get an error when trying to regenerate the certificates and the public and private keys show as 0 Bytes which can’t be right. The warning messages are:
Warning: openssl_pkey_export(): cannot get key from parameter 1 in public_html/wp-content/plugins/oauth2-provider/includes/functions.php on line 383 Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in public_html/wp-content/plugins/oauth2-provider/includes/functions.php on line 388 Warning: Cannot modify header information - headers already sent by (output started at public_html/wp-content/plugins/oauth2-provider/includes/functions.php:383) in public_html/wp-includes/pluggable.php on line 1331 Warning: Cannot modify header information - headers already sent by (output started at public_html/wp-content/plugins/oauth2-provider/includes/functions.php:383) in public_html/wp-includes/pluggable.php on line 1334
No, I get a critical error …
Warning: openssl_pkey_export(): Cannot get key from parameter 1 in public_html/wp-content/plugins/oauth2-provider/includes/functions.php on line 383 Fatal error: Uncaught TypeError: openssl_pkey_get_details(): Argument #1 ($key) must be of type OpenSSLAsymmetricKey, bool given in public_html/wp-content/plugins/oauth2-provider/includes/functions.php:388 Stack trace: #0 public_html/wp-content/plugins/oauth2- provider/includes/functions.php(388): openssl_pkey_get_details(false) #1 public_html/wp-content/plugins/oauth2-provider/includes/actions.php(109): wp_oauth_generate_server_keys(true) #2 public_html/wp-includes/class-wp-hook.php(292): wp_oauth_regenerate_certificates('') #3 /public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #4 public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #5 public_html/wp-admin/admin-post.php(70): do_action('admin_post_wpoa...') #6 {main} thrown in public_html/wp-content/plugins/oauth2-provider/includes/functions.php on line 388
I have been doing some digging and spotted that the openssl_pkey_get_details is updated in php8.0
https://www.php.net/manual/en/function.openssl-pkey-get-details.php
I then downgraded my php to 7.4, and that allowed me to install your plugin. I could then upgrade to 8.0 with your plugin active.
So I am guessing there is some incompatibility with your plugin installation code and php 8.0.
Hope this helps you to improve the plugin.
I have double checked and I do have OpenSSL installed, the version installed is OpenSSL 1.0.1e-fips.
Please could you confirm if your plugin is compatible with this version?- This reply was modified 2 years, 3 months ago by oravela.
Thanks Justin, I’ve got SSL installed on my site (pyro.org.uk) and I have Really Simple SSL plugin installed. Is there something else I should be doing as it seems to be set up the same way as my other site that is working.