Update key management

This commit is contained in:
bergware
2025-02-01 10:55:07 +01:00
parent 169c03aedf
commit a68c1baff3
5 changed files with 11 additions and 30 deletions
@@ -11,8 +11,7 @@
*/
?>
<?
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
require_once "$docroot/webGui/include/OpenSSL.php";
extract(parse_ini_file("/etc/rc.d/rc.ssl.input"));
// encrypt username and password before saving (if existing)
if (!empty($_POST['USERNAME'])) $_POST['USERNAME'] = openssl_encrypt($_POST['USERNAME'],$cipher,$key,0,$iv);