HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //opt/uFTP/testNotes.txt
#NOTES ONLY FOR DEVELOPERS
#OPENSSL TEST COMMANDS

#Required packages to compile with TLS
sudo apt-get install libssl-dev

#Required packages to compile with PAM
sudo apt-get install libpam0g-dev

#Remove password from a certificate
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
openssl rsa -in key.pem -out newkey.pem
handle SIGPIPE nostop noprint pass
thread apply all where

#Testing ssl
openssl s_client -starttls ftp -connect 192.168.1.237:21
sudo openssl s_server -key key.pem -cert cert.pem -accept 123
openssl s_client -connect 127.0.0.1:49473
USER username
PASS password
PROT P
PORT 192,168,1,237,0,123
LIST


PASV EXAMPLE:
openssl s_client -connect localhost:10000