The MNET network relies on a symmetric exchange of SSH keys in order to encode and decode the messages (xmlrpc) exchanged between tenants. These keys have a limited lifetime and can only be refreshed:
However, a network of tenants able to exchange data through MNET calls, without user circulation, can see its key expire and block the data and service exchange capabilities, but also (for an expired key) block the key reconciliation capability.
It is possible to extend the lifetime of the keys through configuration, but the keys will always have a finite lifetime.
This script:
\$sudo -u www-data /usr/bin/php local/vmoodle/cli/renew_mnetkeys.php --host=http://my.virtual.moodle.org
This mode relies on a set of patches provided by the local_vmoodle component. It makes it possible to slightly modify the rule for accepting the key exchange between Moodle peers.
In a standard Moodle, Moodle checks that the caller has a valid key in its key memory cache, which is an unacceptable precondition when the key is already expired.
In forced mode we accept re-registering a peer's key as soon as it is referenced in the local mnet environment.
Back to the technical guide - Back to the component index - Back to the plugins index - Back to the catalogue