MDL-15148
When replacing key pair, lookup wwwroot again (it might have been changed)
This commit is contained in:
@@ -148,9 +148,11 @@ class mnet_environment {
|
||||
}
|
||||
|
||||
function replace_keys() {
|
||||
global $CFG;
|
||||
$this->keypair = array();
|
||||
$this->keypair = mnet_generate_keypair();
|
||||
$this->public_key = $this->keypair['certificate'];
|
||||
$this->wwwroot = $CFG->wwwroot;
|
||||
$details = openssl_x509_parse($this->public_key);
|
||||
$this->public_key_expires = $details['validTo_time_t'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user