summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-08-15 15:54:16 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-08-15 15:55:29 +0200
commita2e3cd4491b11fc68645c9a8a014db602f680440 (patch)
treefd0cfdc7abb09f89f73aee23f736198f613f728a /scripts
parent5144679b87893d8e5fd187fcdf6fc2a1ba85478f (diff)
downloaddotfiles-a2e3cd4491b11fc68645c9a8a014db602f680440.tar.gz
dotfiles-a2e3cd4491b11fc68645c9a8a014db602f680440.tar.xz
dotfiles-a2e3cd4491b11fc68645c9a8a014db602f680440.zip
Firstrun scripts: add autoconfig for elinks
- make sure SSL peer certificate verification is on - use custom CA bundle for that - set config.saving_style so that no banner is displayed when running elinks for the first time Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/firstrun/70-elinks10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/firstrun/70-elinks b/scripts/firstrun/70-elinks
new file mode 100644
index 0000000..5cd34bd
--- /dev/null
+++ b/scripts/firstrun/70-elinks
@@ -0,0 +1,10 @@
+# see ../certs/cert-import
+mkdir ~/.elinks 2>/dev/null
+elinks -config-dump | sed -e "s|^\([ \t]\+\)\(set[ \t]\+"\
+"connection.ssl.cert_verify[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\
+"1|" -e "s|^\([ \t]\+\)\(set[ \t]\+"\
+"connection.ssl.trusted_ca_file[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\
+"\"${HOME}/.pki/tls/certs/ca-bundle.crt\"|" -e "s|^\([ \t]\+\)\(set[ \t]\+"\
+"config.saving_style[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\
+"3|" \
+> ~/.elinks/elinks.conf