dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit a45be5ca26395a1734c4e54c2534ba663dda44d1
parent 705472354aec2b8b4d3154375eab0e61e856f075
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 10 Sep 2021 16:33:08 -0700

isync,msmtp: use a symlink for CA certificates

In order to allow msmtp and mbsync to work correctly across all
operating systems, point everything to a symlink relative to my home
directory and set that on each machine.

Diffstat:
M.config/msmtp/config | 2+-
A.local/share/certs/.gitignore | 1+
A.local/share/certs/README.md | 7+++++++
M.mbsyncrc | 2+-
4 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.config/msmtp/config b/.config/msmtp/config @@ -1,7 +1,7 @@ defaults auth on tls on -tls_trust_file /usr/local/share/certs/ca-root-nss.crt +tls_trust_file ~/.local/share/certs/ca-certificates.crt # chris.bracken@gmail.com account gmail diff --git a/.local/share/certs/.gitignore b/.local/share/certs/.gitignore @@ -0,0 +1 @@ +ca-certificates.crt diff --git a/.local/share/certs/README.md b/.local/share/certs/README.md @@ -0,0 +1,7 @@ +Create a symlink named `ca-certficates.crt` to the operating system CA +certificates file. This allows us to configure programs to use the same +home-directory-relative path on all operating systems. + +The CA certificates file can be found at the following locations: +* FreeBSD /usr/local/share/certs/ca-root-nss.crt +* Arch Linux /etc/ssl/certs/ca-certificates.crt diff --git a/.mbsyncrc b/.mbsyncrc @@ -25,7 +25,7 @@ PassCmd "gpg -q --batch -d ~/src/cfg/keyring/mbsync.gmail.gpg" AuthMechs LOGIN SSLType IMAPS PipelineDepth 50 -CertificateFile /etc/ssl/certs/ca-certificates.crt +CertificateFile ~/.local/share/certs/ca-certificates.crt # Create gmail remote IMAPStore gmail-remote