Can not generate key-pair, sorry

Can not generate key-pair, sorry

by Johnny Lo -
Number of replies: 1

There is an incident that suddenly for 2 hours one of my moodle sites just can't be signed into.  PHP error log during the time shows a few "Can not generate key-pair" and a bunch of "Disable login" and "file not found" error.  On Windows event log there are 2 warnings about being FailedRequestTracing during the time.  I checked IIS to confirm that its setting is correct.  There is no other errors on Windows Events log during that time.  The problem corrected itself after.

It seems to be a security key issue?  I have a few sites running on the same IIS server.  It seems only one of the Moodle instances is affected.  Any suggestion in where else to investigate?  I am trying to prevent it from happening again.  Many thanks!

Our environment:

Windows 2012 R2, IIS 8, PHP 7.2x64

Moodle 3.8


Average of ratings: -
In reply to Johnny Lo

Re: Can not generate key-pair, sorry

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

This is possibly too late to be useful but this might be useful it it happens again:

  1. Can you tell us what exactly what was experienced by users who tried to sign into the site, especially any error messages. Screenshots help communicate what you see (hide anything you don't want to share publicly).
  2. Are the affected users of the site "manual" users (i.e. internal to Moodle) or are they authenticated by an external service, e.g. Active Directory.
  3. "Can not generate key-pair" and "Disable login" don't look like Moodle errors. Can you provide exact examples of entries from the logs (again redact any information that you don't want to share publicly).
  4. Enabling debug messages in config.php may provide additional information with error messages in the browser or in the log files.