HEX
Server: LiteSpeed
System: Linux uk-fast-web1592.main-hosting.eu 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 22 07:12:43 EST 2026 x86_64
User: u499994370 (499994370)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //usr/local/lsws/admin/misc/create_admin_keypair.sh
#!/bin/sh

CUR_DIR=`dirname "$0"`
cd $CUR_DIR
CUR_DIR=`pwd`

echo "Generating key pair for web console login page, please wait ..."
openssl genrsa -out key.pem 512

if [ "$?" -eq "0" ] ; then
    ../fcgi-bin/admin_php5 -q genjCryptionKeyPair.php key.pem
   rm -f key.pem 
else
    ../fcgi-bin/admin_php5 -q genjCryptionKeyPair.php
fi