Re: Chromium and self-signed certificates

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Chromium and self-signed certificates
De : <bp (at) *nospam* www.zefox.net>
Groupes : comp.sys.raspberry-pi
Date : 15. Aug 2024, 17:51:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v9lbmq$115gc$1@dont-email.me>
References : 1 2
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (FreeBSD/14.0-RELEASE-p9 (arm64))
Richard Kettlewell <invalid@invalid.invalid> wrote:
<bp@www.zefox.net> writes:
I'm trying to get chromium under RasPiOS to open an
https connection to a private webserver that's using
a self-signed certificate. Apache starts up without
reporting any errors, chromium opens the page but
reports only an http connection. All I'm aiming for
at this point is encryption, not authentication.
>
Looking at the page that opens and examining the
certificate reports only one thing that looks like
it might be an error. Under Certificate Basic Constraints
the field value contains:
>
Critical
Is a Certification Authority
Maximum number of intermediate CAs: unlimited
>
Anybody got a link to a good description of how to
troubleshoot this sort of problem? For example, where
does chromium put its error logs?
 
On the one hand that’s just a description of something it found in the
certificate. On the other hand it’s the kind of thing that browsers don’t
like so it’s a reasonable candidate for your first problem.
 
Normally the error page when you try to visit an ill-configured https
site can be persuaded to give you some kind of error indicator - you
should check that before assuming that the unlimited path length is
really the (only) issue.
 
 
If it is the problem:
 
pathLenConstraint is documented here:
  https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.9
 
If that is indeed the issue then you need to go back to where the
self-signed certificate was generated and regenerate it with a
pathLenConstraint. How you do that depends on how you generated it.
 
 
The bigger picture:
 
No modern web browser is likely to accept a self-signed certificate
without complaint (although the degree of moaning may vary), so getting
past this issue may not improve matters as much as you hope.
 
Personally I use LetsEncrypt even for purely ‘internal’ certificates; it
is a lot less painful than either self-signed certificates (which means
tedious browser warnings) or running my own private CA (which means
deploying the root to all the clients on my network, and fitting in with
browser requirements, which can be a moving target).
 

It's very slowly dawning on me just how much I've bitten off here 8-(
Your reply makes it clear that I didn't understand the relationship between
a certificate and a CA-certificate, doubtless there's much more to learn.

My original goal was to get gmail to accept mail from my private mail
server. When that proved opaque it seemed easier to get ssl/tls working
with apache as a sort of rehearsal as it appeared better-documented.
A single host handles both mail and web service and I supposed that
one ssl/tls installation would work for both. Even if true the learning
curve is much steeper than expected. 

Thanks very much for enlightening replies!

bob prohaska
 

Date Sujet#  Auteur
13 Aug 24 * Chromium and self-signed certificates25<bp
14 Aug 24 +- Re: Chromium and self-signed certificates1Lawrence D'Oliveiro
14 Aug 24 `* Re: Chromium and self-signed certificates23Richard Kettlewell
15 Aug 24  `* Re: Chromium and self-signed certificates22<bp
31 Aug 24   `* Re: Chromium and self-signed certificates21<bp
31 Aug 24    +* Re: Chromium and self-signed certificates8Richard Kettlewell
1 Sep 24    i`* Re: Chromium and self-signed certificates7<bp
1 Sep 24    i +* Re: Chromium and self-signed certificates5Lawrence D'Oliveiro
1 Sep 24    i i`* Re: Chromium and self-signed certificates4<bp
2 Sep 24    i i `* Re: Chromium and self-signed certificates3Lawrence D'Oliveiro
2 Sep 24    i i  `* Re: Chromium and self-signed certificates2<bp
3 Sep 24    i i   `- Re: Chromium and self-signed certificates1Richard Kettlewell
1 Sep 24    i `- Re: Chromium and self-signed certificates1Richard Kettlewell
1 Sep 24    `* Re: Chromium and self-signed certificates12Lawrence D'Oliveiro
1 Sep 24     `* Re: Chromium and self-signed certificates11<bp
1 Sep 24      `* Re: Chromium and self-signed certificates10Lawrence D'Oliveiro
1 Sep 24       `* Re: Chromium and self-signed certificates9<bp
1 Sep 24        `* Re: Chromium and self-signed certificates8Richard Kettlewell
1 Sep 24         `* Re: Chromium and self-signed certificates7<bp
2 Sep 24          +* Re: Chromium and self-signed certificates4Lawrence D'Oliveiro
7 Sep 24          i`* Re: Chromium and self-signed certificates3<bp
8 Sep 24          i `* Re: Chromium and self-signed certificates2Lawrence D'Oliveiro
9 Sep 24          i  `- Re: Chromium and self-signed certificates1<bp
2 Sep 24          `* Re: Chromium and self-signed certificates2Richard Kettlewell
3 Sep 24           `- Re: Chromium and self-signed certificates1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal