Replies: 4 comments 2 replies
-
Did you create What exactly are you using here? |
Beta Was this translation helpful? Give feedback.
1 reply
-
On Wed, Jun 22, 2022 at 7:00 AM Sebastian Riedel ***@***.***> wrote:
The fact that it's a [debug] message also tells me that the Mojolicious
version is not up to date. It should be an even lower priority [trace]
message.
Ok update to latest Mojolicious fixed the weird way the template looked
(missing template trace messages still appear as expected).
The certificate verify failed problem remains on my (older) laptop:
* Mojo::UserAgent query (of weather.visualcrossing.com) in an isolated
script on my laptop fails
* Mojo::UserAgent query (of weather.visualcrossing.com) in an isolated
script on the server works
* Mojo::UserAgent query of google.com on my laptop works
So it looks like the problem may be that there really isn't a trust path on
my laptop given the certs Mojo::UserAgent is finding.
Any additional clues on where to look next to diagnose/fix this would be
greatly appreciated.
Britton
—
… Reply to this email directly, view it on GitHub
<#1945 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYW7NDACJOSWR3OTKS3RFTVQMTB7ANCNFSM5ZOHCEWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like the problem was an ancient cert on my old laptop. I de-trusted
it and then UserAgent found the same new cert as on the server and worked.
The odd part from the Mojolicious perspective was the way to debug this
which involved
IO::Socket::SSL::set_defaults(SSL_verify_callback => sub { say
"Authority: $_[2]" and return $_[0] });
and then you guess the associated pem file which is causing the problem
from the output. I guess maybe there's no way for the ->ca method to list
the actual file involved but it would be nice if things were that direct.
Britton
On Wed, Jun 22, 2022 at 8:49 AM Britton Kerin ***@***.***>
wrote:
…
On Wed, Jun 22, 2022 at 7:00 AM Sebastian Riedel ***@***.***>
wrote:
> The fact that it's a [debug] message also tells me that the Mojolicious
> version is not up to date. It should be an even lower priority [trace]
> message.
>
Ok update to latest Mojolicious fixed the weird way the template looked
(missing template trace messages still appear as expected).
The certificate verify failed problem remains on my (older) laptop:
* Mojo::UserAgent query (of weather.visualcrossing.com) in an isolated
script on my laptop fails
* Mojo::UserAgent query (of weather.visualcrossing.com) in an isolated
script on the server works
* Mojo::UserAgent query of google.com on my laptop works
So it looks like the problem may be that there really isn't a trust path
on my laptop given the certs Mojo::UserAgent is finding.
Any additional clues on where to look next to diagnose/fix this would be
greatly appreciated.
Britton
—
> Reply to this email directly, view it on GitHub
> <#1945 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYW7NDACJOSWR3OTKS3RFTVQMTB7ANCNFSM5ZOHCEWQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
On Wed, Jun 22, 2022 at 11:26 AM Sebastian Riedel ***@***.***> wrote:
The error messages come from OpenSSL.
I know but especially since UserAgen has ->ca() it would be nice if the
actual file causing the error could get mentioned somehow. ->ca() without
args seems a getter method but returns undef by default. All probably
perfectly reasonable and I realize how tough it can be to get this sort of
fail propagated up in any intelligible way, but we can wish. I'd hazard a
guess that cert fail is a somewhat common source of error at the moment as
http fades away.
Britton
… —
Reply to this email directly, view it on GitHub
<#1945 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYW7NCSWVCCMJ6RJJX5JIDVQNSHDANCNFSM5ZOHCEWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use morbo again for some speed after devel on server for a while and I've hit a couple issues:
one is exception templates aren't found, morbo says: [2022-06-21 14:53:05.34259] [14320] [debug] Template "exception.development.html.ep" not found
the other is the Mojo::UserAgent that I've been using successfully from the server doesn't work for SSL reasons, it says: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed. I suspect the user agent isn't finding the cert lists that is uses when run from CGI script on server.
It seems like these issues are likely related. I'm using morbo directly on the script in my source dir 'morbo web_client.cgi' (with some code to pick local files for secret, test db etc.), but it seems like it isn't picking up some global Mojolicious context that the CGI script gets, is there some way to tell morbo where it should be getting that stuff?
Beta Was this translation helpful? Give feedback.
All reactions