MDL-15148

When replacing key pair, lookup wwwroot again (it might have been changed)
This commit is contained in:
thepurpleblob
2008-07-31 14:53:27 +00:00
parent fe67442c84
commit fe4cb39742
+2
View File
@@ -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'];