mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-17419 misconfigured openssl extension blocks installation - openssl.cnf missing??
This commit is contained in:
parent
2280e147c5
commit
eb7f89bc15
2 changed files with 11 additions and 1 deletions
|
@ -152,8 +152,14 @@ class mnet_environment {
|
|||
function replace_keys() {
|
||||
global $DB, $CFG;
|
||||
|
||||
$keypair = mnet_generate_keypair();
|
||||
if (empty($keypair)) {
|
||||
error_log('Can not generate keypair, sorry');
|
||||
return;
|
||||
}
|
||||
|
||||
$this->keypair = array();
|
||||
$this->keypair = mnet_generate_keypair();
|
||||
$this->keypair = $keypair;
|
||||
$this->public_key = $this->keypair['certificate'];
|
||||
$details = openssl_x509_parse($this->public_key);
|
||||
$this->public_key_expires = $details['validTo_time_t'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue