Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902110114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /var/softaculous/moodle29//privatekey.php
<?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,
);
}
?>
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- January 11 2026 11:30:19 root / root 0755 images -- May 13 2024 22:59:09 root / root 0755 languages -- May 13 2024 22:59:09 root / root 0755 php53 -- May 13 2024 22:59:09 root / root 0755 php56 -- May 13 2024 22:59:09 root / root 0755 php71 -- May 13 2024 22:59:09 root / root 0755 php81 -- May 13 2024 22:59:09 root / root 0755 php82 -- May 13 2024 22:59:09 root / root 0755 NOTES.txt 1.514 KB March 16 2022 10:40:20 root / root 0644 add_admin.php 0.716 KB June 30 2022 12:50:36 root / root 0644 check_utf8.php 5.878 KB March 16 2022 10:40:20 root / root 0644 clone.php 5.468 KB May 02 2024 11:48:20 root / root 0644 config.php 0.728 KB December 23 2021 11:54:36 root / root 0644 edit.php 5.686 KB May 02 2024 11:48:20 root / root 0644 edit.xml 0.423 KB December 23 2021 11:54:36 root / root 0644 fileindex.php 0.859 KB December 23 2021 11:54:36 root / root 0644 import.php 5.326 KB May 02 2024 11:48:20 root / root 0644 info.xml 3.367 KB May 02 2024 10:25:50 root / root 0644 install.js 0.902 KB December 23 2021 11:54:36 root / root 0644 install.php 19.641 KB May 02 2024 11:48:20 root / root 0644 install.xml 2.533 KB June 29 2023 10:20:22 root / root 0644 md5 4.623 KB May 02 2024 11:48:20 root / root 0644 privatekey.php 0.768 KB December 23 2021 11:54:36 root / root 0644 update_pass.php 3.175 KB December 23 2021 11:54:36 root / root 0644 upgrade.php 7.356 KB May 02 2024 11:48:20 root / root 0644 upgrade.xml 0.3 KB December 23 2021 11:54:36 root / root 0644