On Sat, 2021-02-06 at 18:30 +0000, John Horne wrote:
> Hello,
>
> I have now modified the rkhunter sourceforge (SF) site to use HTTPS rather
> than HTTP. This should only affect the '--update' and '--versioncheck'
> options, which download files from SF. The rkhunter code itself has not been
> modified (yet) as SF say that they will simply perform a redirect as
> required.
>
Hello,

Unfortunately I have had to revert this change (so we are using HTTP again).
Rkhunter performs a check on the mirror URL(s), causing the above change to
fail. So we will need to push out a new version of rkhunter before we can move
to HTTPS.

If you really want to use HTTPS now, then you can either get the latest
development version (from
https://sourceforge.net/p/rkhunter/rkh_code/ci/develop/tree/ ) and download a
snapshot or you can modify the code yourself (it's only one line).

If you want to modify the code, then you need to change the 'rkhunter' program
(version 1.4.6) line 7502 from:

======
if [ $DOING_VERS_CHK -eq 0 -a "${MIRROR}" = "http://
rkhunter.sourceforge.net" ]; then
======

to

======
if [ $DOING_VERS_CHK -eq 0 -a \( "${MIRROR}" =
"https://rkhunter.sourceforge.io"; -o "${MIRROR}" =
"http://rkhunter.sourceforge.net"; \) ]; then
======

In either case, you will then need to modify your 'mirrors.dat' file (usually
found at '/var/lib/rkhunter/db/mirrors.dat'). Change the mirror URLs in it to
'https://rkhunter.sourceforge.io' and modify the version number (the first
line) to something that begins '2022' (which is the year of the version). This
stops the file from being updated itself (otherwise the mirror would revert to
using HTTP again).




John.

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>

This email and any files with it are confidential and intended solely for the 
use of the recipient to whom it is addressed. If you are not the intended 
recipient then copying, distribution or other use of the information contained 
is strictly prohibited and you should not rely on it. If you have received this 
email in error please let the sender know immediately and delete it from your 
system(s). Internet emails are not necessarily secure. While we take every 
care, University of Plymouth accepts no responsibility for viruses and it is 
your responsibility to scan emails and their attachments. University of 
Plymouth does not accept responsibility for any changes made after it was sent. 
Nothing in this email or its attachments constitutes an order for goods or 
services unless accompanied by an official order form.

_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to