Here is a function I use for sites that block simple bots.
function ts()
{
MyUrl="$1";export MyUrl
bash ./testssl.sh --log --json --disable-rating \
--reqheader "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:159.0) Gecko/20100101 Firefox/159.0" \
--reqheader "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
--reqheader "Accept-Language: en-US" \
--reqheader "Accept-Encoding: gzip, deflate, br, zstd" \
--reqheader "Sec-Fetch-Dest: document" \
--reqheader "Sec-Fetch-Mode: navigate" \
--reqheader "Sec-Fetch-Site: cross-site" \
--reqheader "Sec-Fetch-User: ?1" \
# --ip 127.0.0.1 \
"${MyUrl}"
}
Uncomment the --ip to force it to an IP for testing on a server directly itself.Some sites are more forgiving if the url includes /robots.txt
# use path to openssl or set a variable in combination with $(which openssl)
--openssl /usr/bin/openssl \
or it may warn that tls1.3 is not supported.