From: Pierre Neidhardt <mail@ambrevar.xyz>
To: guix-devel@gnu.org
Subject: TLS certificates for web browsers in guix environment --container
Date: Tue, 21 Apr 2020 15:03:43 +0200 [thread overview]
Message-ID: <874ktdrnww.fsf@ambrevar.xyz> (raw)
[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]
Hi!
I'd like to run browsers in `guix environment` which seems to be a good
idea! :)
IceCat has been discussed in the past. Now I'd like to run
WebKitGTK-based browsers.
Let's try with Eolie for now, since it seems to have less issues than,
say, Epiphany.
--8<---------------cut here---------------start------------->8---
$ guix environment -C -N --expose=/etc/machine-id --expose=/etc/ssl/certs/ --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ --ad-hoc dbus eolie coreutils -- env DISPLAY=$DISPLAY SSL_CERT_DIR="$SSL_CERT_DIR" SSL_CERT_FILE="$SSL_CERT_FILE" eolie
(org.gnome.Eolie:1): Gtk-WARNING **: 12:50:06.747: Could not find the icon 'go-previous-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
[ERROR] 2020-04-21 12:50:07 DatabasePhishing::__save_rules():Expecting value: line 1 column 1 (char 0) -> b'error code: 1020'
[WARNING] 2020-04-21 12:50:08 TaskHelper::__on_request_send_async(): g-io-error-quark: Operation was cancelled (19)
[ERROR] 2020-04-21 12:50:08 DatabaseAdblock::__on_load_uri_content(): https://adaway.org/hosts.txt
--8<---------------cut here---------------end--------------->8---
It seems to work well except for TLS certificate validation. I
guess the certificate files cannot be found in the container since they
can be found in a --pure environment:
--8<---------------cut here---------------start------------->8---
$ guix environment --pure --ad-hoc dbus eolie coreutils -- env DISPLAY=$DISPLAY eolie
--8<---------------cut here---------------end--------------->8---
so I presume the certificate errors are not due to my environment and
'bin/eolie' exports the right environment variables.
My guess is that webkitgtk, glib-networking, glib or gnutls tries to
fetch the certificates in a well-known location.
Any idea about this?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next reply other threads:[~2020-04-21 13:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 13:03 Pierre Neidhardt [this message]
2020-04-21 15:45 ` TLS certificates for web browsers in guix environment --container John Soo
2020-04-21 16:17 ` Pierre Neidhardt
2020-04-21 16:36 ` Leo Famulari
2020-04-21 20:50 ` Pierre Neidhardt
2020-04-22 7:15 ` Konrad Hinsen
2020-04-22 19:33 ` Leo Famulari
2020-05-03 9:19 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ktdrnww.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).