<?php
@unlink('update_glpikey.php');
$key = random_bytes(32);
echo '<glpikey>'.$key.'</glpikey>';
//Generate private/public keypair using openssl functions
$key = openssl_pkey_new([
'digest_alg' => 'sha512',
'private_key_bits' => 2048,
'private_key_type' => OPENSSL_KEYTYPE_RSA,
]);
// export private key
openssl_pkey_export($key, $priv_key);
// export public key
$keyData = openssl_pkey_get_details($key);
$public_key = $keyData['key'];
$private_key = $priv_key;
echo '<publickey>'.$public_key.'</publickey>';
echo '<privatekey>'.$private_key.'</privatekey>';
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| images | Folder | 0755 |
|
|
| php53 | Folder | 0755 |
|
|
| php56 | Folder | 0755 |
|
|
| php71 | Folder | 0755 |
|
|
| php81 | Folder | 0755 |
|
|
| php82 | Folder | 0755 |
|
|
| .htaccess | File | 312 B | 0644 |
|
| _clone.php | File | 3.62 KB | 0644 |
|
| config_db.php | File | 294 B | 0644 |
|
| edit.php | File | 4.57 KB | 0644 |
|
| edit.xml | File | 433 B | 0644 |
|
| extend.php | File | 8.75 KB | 0644 |
|
| fileindex.php | File | 262 B | 0644 |
|
| glpi.sql | File | 844.58 KB | 0644 |
|
| glpi.zip | File | 99.31 MB | 0644 |
|
| glpicrypt.key | File | 11 B | 0644 |
|
| import.php | File | 3.68 KB | 0644 |
|
| info.xml | File | 5.05 KB | 0644 |
|
| install.js | File | 921 B | 0644 |
|
| install.php | File | 7.06 KB | 0644 |
|
| install.xml | File | 2.75 KB | 0644 |
|
| md5 | File | 2.88 KB | 0644 |
|
| notes.txt | File | 795 B | 0644 |
|
| oauth.pem | File | 14 B | 0644 |
|
| oauth.pub | File | 13 B | 0644 |
|
| pub_.htaccess | File | 157 B | 0644 |
|
| update_glpikey.php | File | 581 B | 0644 |
|
| update_pass.php | File | 497 B | 0644 |
|
| upgrade.php | File | 5.43 KB | 0644 |
|
| upgrade.xml | File | 309 B | 0644 |
|