git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-imap-send.txt: remove the use of sslverify=false in GMail example

From
Simon Ruderich <simon@ruderich.org>
Date
Apr 11, 2013, 15:26 UTC
Message-ID
<20130411152617.GA14264@ruderich.org>
In-Reply-To
<7vmwt6mdjg.fsf@alter.siamese.dyndns.org>
On Wed, Apr 10, 2013 at 11:44:03AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> The reason why we can run with sslverify=true against gmail is
> because we know imap.gmail.com gives a validly signed certificate
> that leads all the way to a root CA the user's OpenSSL installation
> is likely to trust (if your hand-rolled imap-over-ssl server uses a
> snakeoil certificate, even though the server may be "SSL capable",
> you may not be able to successfully connect to it without sslverify
> turned off).

Maybe imap-send should learn imap.sslCAInfo and imap.sslCAPath like http.* to handle custom certificates.

Show 11 quoted lines
>> diff --git a/Documentation/git-imap-send.txt b/Documentation/git-imap-send.txt
>> index 875d283..b15dffe 100644
>> --- a/Documentation/git-imap-send.txt
>> +++ b/Documentation/git-imap-send.txt
>> @@ -123,7 +123,6 @@ to specify your account settings:
>>  	host = imaps://imap.gmail.com
>>  	user = user@gmail.com
>>  	port = 993
>> -	sslverify = false
>>  ---------
>>   You might need to instead use: folder = "[Google Mail]/Drafts" if you get an error

I think we should remove sslverify = false from the other example as well. "Recommending" sslverify = false is IMHO a bad idea as SSL provides no protection without verification.

Regards Simon

-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
Previous: Barbu Paul - GheorgheNext: Barbu Paul - Gheorghe
Message 4 of 8 in “git-imap-send.txt: remove the use of sslverify=false in GMail example”
  1. git-imap-send.txt: remove the use of sslverify=false in GMail exampleBarbu Paul - Gheorghe, Apr 10, 2013
  2. Junio C HamanoApr 10, 2013
  3. Barbu Paul - GheorgheApr 11, 2013
  4. Simon RuderichApr 11, 2013
  5. Barbu Paul - GheorgheApr 11, 2013
  6. Simon RuderichApr 20, 2013
  7. git-imap-send.txt: remove the use of sslverify=falseBarbu Paul - Gheorghe, Apr 22, 2013
  8. Junio C HamanoApr 24, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.