PATH:
var
/
softaculous
/
moodle29
<?php // We do not need this file any more @unlink('privatekey.php'); $ltikey = __mod_lti_verify_private_key(); echo '<kid>'.$ltikey['kid'].'</kid>'; echo '<privatekey>'.$ltikey['privatekey'].'</privatekey>'; function __mod_lti_verify_private_key() { global $error; if (!function_exists('openssl_random_pseudo_bytes')) { $error[] = "openssl must be loaded for openssl_random_pseudo_bytes to function"; return null; } // Create the private key. $kid = bin2hex(openssl_random_pseudo_bytes(10)); $config = array( "digest_alg" => "sha256", "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, ); $res = openssl_pkey_new($config); openssl_pkey_export($res, $privatekey); return array( 'kid' => $kid, 'privatekey' => $privatekey, ); } ?>
[-] config.php
[edit]
[+]
php56
[+]
php81
[+]
php53
[-] upgrade.php
[edit]
[-] update_pass.php
[edit]
[+]
..
[-] edit.xml
[edit]
[-] privatekey.php
[edit]
[-] import.php
[edit]
[+]
languages
[-] add_admin.php
[edit]
[-] md5
[edit]
[-] check_utf8.php
[edit]
[-] clone.php
[edit]
[-] install.js
[edit]
[+]
php71
[-] install.php
[edit]
[-] fileindex.php
[edit]
[-] upgrade.xml
[edit]
[-] NOTES.txt
[edit]
[-] edit.php
[edit]
[-] info.xml
[edit]
[-] install.xml
[edit]
[+]
images
[+]
php82