So it looks like the default page is not configured, so I get an error and it doesn't display the version info.
/opt/freeware/bin/curl --insecure -I http://localhost
HTTP/1.1 404 Not Found
Content-type: text/html; charset=UTF-8
Expires: Thu, 29 Oct 1998 17:04:19 GMT
Cache-Control: no-cache,no-store
Connection: close
Pragma: no-cache
curl: (8) Weird server reply
But if I test with a valid URL I can control if httpd/ssl version is displayed with these.
ServerTokens FULL # this value will let http and ssl
ServerTokens Prod # this limits the output and doesn't display the version
Thank you for your help.
Vinny
------------------------------
Vinny G
------------------------------
Original Message:
Sent: Thu April 04, 2024 02:49 AM
From: RESHMA KUMAR
Subject: httpd-2.4.58-1 and Tenable
Hi Vinny,
With a valid IP, we are able to run the command successfully.
# curl --insecure -I https://localhost
HTTP/1.1 200 OK
Date: Thu, 04 Apr 2024 06:18:59 GMT
Server: Apache/2.4.58 (Unix) OpenSSL/1.1.1v PHP/8.1.22 mod_auth_gssapi/1.6.3 mod_auth_kerb/5.4 mod_wsgi/5.0.0 Python/3.9 SVN/1.10.8 mod_perl/2.0.13 Perl/v5.38.2
Last-Modified: Mon, 11 Jun 2007 18:53:14 GMT
ETag: "2d-432a5e4a73a80"
Accept-Ranges: bytes
Content-Length: 45
Content-Type: text/html
FYI, Httpd 2.4.58 is linked against openssl 1.1.x and it will make use of the openssl installed in the system ( It uses lib*.so.1.1 shared object that comes with the openssl 3 archive)
------------------------------
RESHMA KUMAR
------------------------------
Original Message:
Sent: Thu March 28, 2024 10:47 AM
From: Vinny G
Subject: httpd-2.4.58-1 and Tenable
Scott
The command are good for my note but the just display the settings on the Redhat system but not the AIX system. I'm trying to figure out if the IBM guys compiled stuff into httpd that prevent displaying information on the httpd or maybe my developers did something in the cfg that prevents the information from displaying. As a result Tenable Scanner is flagging the system for running older version of httpd and SSL.
Vinny
------------------------------
Vinny G
Original Message:
Sent: Thu March 28, 2024 09:35 AM
From: Scott Gruber
Subject: httpd-2.4.58-1 and Tenable
Vinny,
Perhaps these will help :
http display : curl --head http://localhost 2>/dev/null|grep Server
https display : curl --insecure --head https://localhost 2>/dev/null|grep Server
Strict display : curl --insecure --head https://localhost 2>/dev/null|grep Strict
Regards
------------------------------
Scott Gruber