Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: 768 (artoqlkw)
Group: 773 (artoqlkw)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//bin      ( Reset | Go to )
File Name: make-dummy-cert
#!/bin/sh
umask 077

answers() {
    echo --
    echo SomeState
    echo SomeCity
    echo SomeOrganization
    echo SomeOrganizationalUnit
    echo localhost.localdomain
    echo [email protected]
}

if [ $# -eq 0 ] ; then
    echo $"Usage: `basename $0` filename [...]"
    exit 0
fi

for target in $@ ; do
    PEM1=`/bin/mktemp /tmp/openssl.XXXXXX`
    PEM2=`/bin/mktemp /tmp/openssl.XXXXXX`
    trap "rm -f $PEM1 $PEM2" SIGINT
    answers | /usr/bin/openssl req -newkey rsa:2048 -keyout $PEM1 -nodes -x509 -days 365 -out $PEM2 2> /dev/null
    cat $PEM1 >  ${target}
    echo ""   >> ${target}
    cat $PEM2 >> ${target}
    rm -f $PEM1 $PEM2
done

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL