[Nix-dev] msmtp and certificates

Bjørn Forsman bjorn.forsman at gmail.com
Sat Jul 20 20:57:47 CEST 2013


On 20 July 2013 20:41, Lluís Batlle i Rossell <viric at viric.name> wrote:
> On Sat, Jul 20, 2013 at 07:56:45PM +0200, Bjørn Forsman wrote:
>> Hi all,
>>
>> On Ubuntu I've been using msmtp on the command line to send emails
>> with my gmail account (handy for cronjobs). But my msmtp configuration
>> file includes a "tls_trust_file" directive that points to
>> "/etc/ssl/certs/ca-certificates.crt", and that fails on NixOS.
>>
>> On Debian/Ubuntu, there is a ca-certificates package (seems to be
>> installed by default), but /etc/ssl/certs/ca-certificates.crt is
>> actually not owned by any package, I think it is generated by a
>> post-install script.
>
> set | grep certs

Thanks! So we have /etc/ssl/certs/ca-bundle.crt in NixOS. Now my msmtp
works. I cannot believe I didn't look inside /etc/ssl/certs/ before
posting :-)

Would it be an idea to rename ca-bundle.crt to ca-certificates.crt?
One less (needless?) distro difference?

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list