MDL-17419 misconfigured openssl extension blocks installation - openssl.cnf missing??

This commit is contained in:
skodak 2008-11-28 12:54:15 +00:00
parent 2280e147c5
commit eb7f89bc15
2 changed files with 11 additions and 1 deletions

View file

@ -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'];