]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: be explicit with SSL certificate verification
authorRamkumar Ramachandra <artagnon@gmail.com>
Thu, 18 Jul 2013 16:53:11 +0000 (09:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jul 2013 23:01:30 +0000 (16:01 -0700)
commit35035bbf074d1a4c59cd5f99282c12197105da08
tree8cd36b1fccfd9414cb6d71de1793016d4c77deb9
parent531c8dd4fb18e653d6170d367e4b23c3164d5ce0
send-email: be explicit with SSL certificate verification

When initiating an SSL connection without explicitly specifying the
SSL certificate verification mode, Net::SMTP::SSL defaults to no
verification, but recent versions of the module gives a warning
against this use of the default.

Enable certificate verification by default, using /etc/ssl/certs as
the default path for certificates of certificate authorities.  This
path can be overriden by the --smtp-ssl-cert-path command line
option and the sendemail.smtpSSLCertPath configuration variable.

Passing an empty string as the path for CA certificates path disables
the SSL certificate verification explicitly, which does not trigger
the warning from recent versions of Net::SMTP::SSL.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Helped-by: Brian M. Carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-send-email.txt
git-send-email.perl