Re: Fetch_NS

2021-10-03 Thread Frederick Bambrough
In message 
 David Higton  wrote:

> In message <6160be7559.DaveMeUK@BeagleBoard-xM>
>   David Higton  wrote:
> 
[snip]
> Following up my own post: it looks like my CertData file must have
> contained an invalid certificate (even though it was only 3 months out
> of data), because replacing that has fixed the problem.
> 
> I have updated a couple of lines in !Boot.Choices.Fetch_NS.Settings.
> These are the new ones:
> 
> Set Fetch_NS$Url https://ci.netsurf-browser.org/builds/riscos/
> 
> Set Fetch_NS$Opt --ca-certificate=InetDbase:CertData -qO
> 
> First one is to use https rather than http.  Second one is to use the
> central InetDbase:CertData file rather than a separate (and non-
> maintained) copy.

Thanks for that, David. The first line had already been changed in my copy
of the file from the last time this error occurred so the second line was
the fix for me.

Updates for the CertData file are also available in the ROOL nightly beta
HardDisc4.

Fred
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread David Higton
In message 
  David Higton  wrote:

>In message <5975ccea71d...@triffid.co.uk>
>  Dave  wrote:
>
>>I have made the changes, but the error is the same.
>>
>>The full error message courtesy of Reporter is:
>>
>>** WimpError ** from unknown task
>>  Error  : &
>>  Message: file LATEST missing or empty at line 6
>
>OK, open the InetDbase:CertData file and tell us the date you'll see
>near the top (it's the 4th line in mine).
>
>Mine says:
>
>## Certificate data from Mozilla as of: Thu Sep 30 03:12:05 2021 GMT

And if yours is earlier than this year, then go get this file:

https://curl.se/ca/cacert.pem

The correct file should be a little over 20 bytes.  If the one
you download is, put it in the InetDbase: directory, delete the old
CertData file, and rename the new one as CertData.

David
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread David Higton
In message <5975ccea71d...@triffid.co.uk>
  Dave  wrote:

>I have made the changes, but the error is the same.
>
>The full error message courtesy of Reporter is:
>
>** WimpError ** from unknown task
>  Error  : &
>  Message: file LATEST missing or empty at line 6

OK, open the InetDbase:CertData file and tell us the date you'll see
near the top (it's the 4th line in mine).

Mine says:

## Certificate data from Mozilla as of: Thu Sep 30 03:12:05 2021 GMT

David
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread Dave
In article ,
   David Higton  wrote:
> In message <5975c6fce7d...@triffid.co.uk>
>   Dave  wrote:

> >In article ,
> >   David Higton  wrote:
> >> In message <6160be7559.DaveMeUK@BeagleBoard-xM>
> >>   David Higton  wrote:
> >
> >> >Hi all,
> >> > I used to use Fetch_NS daily.  Recently it has stopped working,
> >> >complaining of an incorrectly formatted filename - of course it's
> >> >incorrectly formatted because it's the empty string.  The error is
> >> >coming from Fetch_NS.Resources.SetLatest.
> >> > I'm trying to analyse why it isn't working, but the code is
> >> >crunched, or very nearly so, which means I'm struggling to
> >> >understand it.
> >> >
> >> >Has it stopped working for anyone else?  If so, do you have a
> >> >solution?
> >
> >> Following up my own post: it looks like my CertData file must have
> >> contained an invalid certificate (even though it was only 3 months out
> >> of data), because replacing that has fixed the problem.
> >
> >> I have updated a couple of lines in !Boot.Choices.Fetch_NS.Settings.
> >> These are the new ones:
> >
> >> Set Fetch_NS$Url https://ci.netsurf-browser.org/builds/riscos/
> >
> >> Set Fetch_NS$Opt --ca-certificate=InetDbase:CertData -qO
> >
> >> First one is to use https rather than http.  Second one is to use the
> >> central InetDbase:CertData file rather than a separate (and non-
> >> maintained) copy.
> >
> >> David
> >
> >Ooeer! slight aside but similar problem... I've not updated Netsurf
> >recently so prompted by the above notes thought I better do it.
> >
> >Error from Fetch_NS
> > Error  : &
> >  Message: file LATEST missing or empty at line 6
> >
> >I have no idea what that is, or where it originates from...
> >
> >Any ideas please how to fix whatever it is?

> Make the changes described above, for a start.

> The problem is caused by a bundle of certificate authority certificates
> being out of date.

> If that still doesn't fix it, come back to us here.

> David

I have made the changes, but the error is the same.

The full error message courtesy of Reporter is:

** WimpError ** from unknown task
  Error  : &
  Message: file LATEST missing or empty at line 6

Thanks
Dave

With regard to the error message.
The only place in the !AppDir that I can find a Line 6 is in...

"HostFS::HardDisc4.$.Net.!Fetch_NS.Resources.SetLatest"  A Basic file.

D.

-- 

Dave Triffid
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread David Higton
In message <5975c6fce7d...@triffid.co.uk>
  Dave  wrote:

>In article ,
>   David Higton  wrote:
> 
> > Following up my own post: it looks like my CertData file must have
> > contained an invalid certificate (even though it was only 3 months out of
> > data), because replacing that has fixed the problem.
> 
> > I have updated a couple of lines in !Boot.Choices.Fetch_NS.Settings.
> > These are the new ones:
> 
> > Set Fetch_NS$Url https://ci.netsurf-browser.org/builds/riscos/
> 
> > Set Fetch_NS$Opt --ca-certificate=InetDbase:CertData -qO
> 
> > First one is to use https rather than http.  Second one is to use the
> > central InetDbase:CertData file rather than a separate (and non-
> > maintained) copy.
> 
> > David
> 
> Ooeer! slight aside but similar problem... I've not updated Netsurf
> recently so prompted by the above notes thought I better do it.
> 
> Error from Fetch_NS Error  : &
>  Message: file LATEST missing or empty at line 6
> 
> I have no idea what that is, or where it originates from...
> 
> Any ideas please how to fix whatever it is?

Slightly longer answer:

The problem is caused by an HTTPS certificate bundle file that contains
an invalid or out of date certificate.

There's a related problem in that there are multiple copies of this
file splattered around some people's systems.  There ought to be one
true copy, and it ought to be easy to maintain it.  Maintaining one
has to be easier than maintaining more than one, right?

The one we should all be using is InetDbase:CertData (i.e. the file's
name is CertData, and it lives in the InetDbase: directory, which on
my system expands to HardDisc4.$.!Boot.Resources.!Internet.Files, but
if we refer to it as InetDbase:CertData, then it doesn't matter where
or on what drive or filing system you store it, the reference will be
correct).  Hence the second of the modifications above.

OK, I don't know how up to date your InetDbase:CertData is, but I can
at least offer you an easy way to update it - provided it is recent
enough in the first place.  Go to my web site, https://davehigton.me.uk
and look for UpdCaCert.zip  Unzip it, put it somewhere useful (maybe
Apps), and run it.  It will update your InetDbase:CertData file, if
and only if a later one is available.

Hope that helps.

If even that doesn't work, it's possible that your InetDbase:CertData
file is out of date, in which case come back to us here and we can tell
you how to fix that.  (My app requires a working CertData file to be
able to download the new one.  Yes, there is a potential for trouble
there.)

David
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread David Higton
In message <5975c6fce7d...@triffid.co.uk>
  Dave  wrote:

>In article ,
>   David Higton  wrote:
>> In message <6160be7559.DaveMeUK@BeagleBoard-xM>
>>   David Higton  wrote:
>
>> >Hi all,
>> > I used to use Fetch_NS daily.  Recently it has stopped working,
>> >complaining of an incorrectly formatted filename - of course it's
>> >incorrectly formatted because it's the empty string.  The error is
>> >coming from Fetch_NS.Resources.SetLatest.
>> >
>> >I'm trying to analyse why it isn't working, but the code is crunched, or
>> >very nearly so, which means I'm struggling to understand it.
>> >
>> >Has it stopped working for anyone else?  If so, do you have a solution?
>
>> Following up my own post: it looks like my CertData file must have
>> contained an invalid certificate (even though it was only 3 months out
>> of data), because replacing that has fixed the problem.
>
>> I have updated a couple of lines in !Boot.Choices.Fetch_NS.Settings.
>> These are the new ones:
>
>> Set Fetch_NS$Url https://ci.netsurf-browser.org/builds/riscos/
>
>> Set Fetch_NS$Opt --ca-certificate=InetDbase:CertData -qO
>
>> First one is to use https rather than http.  Second one is to use the
>> central InetDbase:CertData file rather than a separate (and non-
>> maintained) copy.
>
>> David
>
>Ooeer! slight aside but similar problem...
>I've not updated Netsurf recently so prompted by the above notes thought I
>better do it.
>
>Error from Fetch_NS
> Error  : &
>  Message: file LATEST missing or empty at line 6
>
>I have no idea what that is, or where it originates from...
>
>Any ideas please how to fix whatever it is?

Make the changes described above, for a start.

The problem is caused by a bundle of certificate authority certificates
being out of date.

If that still doesn't fix it, come back to us here.

David
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread Dave
In article ,
   David Higton  wrote:
> In message <6160be7559.DaveMeUK@BeagleBoard-xM>
>   David Higton  wrote:

> >Hi all,
> > I used to use Fetch_NS daily.  Recently it has stopped working,
> >complaining of an incorrectly formatted filename - of course it's
> >incorrectly formatted because it's the empty string.  The error is
> >coming from Fetch_NS.Resources.SetLatest.
> >
> >I'm trying to analyse why it isn't working, but the code is crunched, or
> >very nearly so, which means I'm struggling to understand it.
> >
> >Has it stopped working for anyone else?  If so, do you have a solution?

> Following up my own post: it looks like my CertData file must have
> contained an invalid certificate (even though it was only 3 months out
> of data), because replacing that has fixed the problem.

> I have updated a couple of lines in !Boot.Choices.Fetch_NS.Settings.
> These are the new ones:

> Set Fetch_NS$Url https://ci.netsurf-browser.org/builds/riscos/

> Set Fetch_NS$Opt --ca-certificate=InetDbase:CertData -qO

> First one is to use https rather than http.  Second one is to use the
> central InetDbase:CertData file rather than a separate (and non-
> maintained) copy.

> David

Ooeer! slight aside but similar problem...
I've not updated Netsurf recently so prompted by the above notes thought I
better do it.

Error from Fetch_NS
 Error  : &
  Message: file LATEST missing or empty at line 6

I have no idea what that is, or where it originates from...

Any ideas please how to fix whatever it is?

Thanks
Dave

FWIW. I do not have 5313 

VRPC-DL running RISC OS 6.20  Fetch_NS Version: 2.40.

D.

-- 

Dave Triffid
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread David Higton
In message <6160be7559.DaveMeUK@BeagleBoard-xM>
  David Higton  wrote:

>Hi all,
>
>I used to use Fetch_NS daily.  Recently it has stopped working, complaining
>of an incorrectly formatted filename - of course it's incorrectly formatted
>because it's the empty string.  The error is coming from
>Fetch_NS.Resources.SetLatest.
>
>I'm trying to analyse why it isn't working, but the code is crunched, or
>very nearly so, which means I'm struggling to understand it.
>
>Has it stopped working for anyone else?  If so, do you have a solution?

Following up my own post: it looks like my CertData file must have
contained an invalid certificate (even though it was only 3 months out
of data), because replacing that has fixed the problem.

I have updated a couple of lines in !Boot.Choices.Fetch_NS.Settings.
These are the new ones:

Set Fetch_NS$Url https://ci.netsurf-browser.org/builds/riscos/

Set Fetch_NS$Opt --ca-certificate=InetDbase:CertData -qO

First one is to use https rather than http.  Second one is to use the
central InetDbase:CertData file rather than a separate (and non-
maintained) copy.

David
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Re: Fetch_NS

2021-10-03 Thread cj
In article <6160be7559.DaveMeUK@BeagleBoard-xM>,
   David Higton  wrote:
> Has it stopped working for anyone else?  If so, do you have a
> solution?

Worked ok here, although there is nothing to fetch, since it has been
5313 since before mid Sept.

The version of SetLatest here certainly is not crunched, although it
has had changes made by me.

-- 
Chris Johnson
Edinburgh
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org


Fetch_NS

2021-10-03 Thread David Higton
Hi all,

I used to use Fetch_NS daily.  Recently it has stopped working, complaining
of an incorrectly formatted filename - of course it's incorrectly formatted
because it's the empty string.  The error is coming from
Fetch_NS.Resources.SetLatest.

I'm trying to analyse why it isn't working, but the code is crunched, or
very nearly so, which means I'm struggling to understand it.

Has it stopped working for anyone else?  If so, do you have a solution?

David
___
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-le...@netsurf-browser.org