Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Problems accessing IMAP with TLS
@ 2010-09-02  9:12 Timo Myyrä
  0 siblings, 0 replies; 2+ messages in thread
From: Timo Myyrä @ 2010-09-02  9:12 UTC (permalink / raw)
  To: info-gnus-english

Hi,

I'm trying to access my schools Exchange 2010 IMAP server from Gnus but I
can't get secure connection to it.

I can access the IMAP server with plain IMAP and plaintext password just fine
but obviously this isn't good option security-wise. 

The school instruction tells to use the IMAP service with port 143 and TLS
enabled.

I've tested the instructions with Thunderbird and I had to use STARTTLS
instead of SSL/TSL for connection security for the connection to succeed.

I have following settings but it won't work.
(setq gnus-select-method '(nnimap "metropolia"
                                  (nnimap-address "195.148.166.20")
                                  (nnimap-server-port 143)
                                  (nnimap-stream starttls)))

When trying above settings I get following to Messages buffer:
imap: Connecting to 195.148.166.20...
Opening STARTTLS connection to `195.148.166.20:143'...done
imap: Connecting with STARTTLS...
STARTTLS negotiation failed: *** Starting TLS handshake
- Certificate type: X.509
 - Got a certificate list of 1 certificates.
 - Certificate[0] info:
  - subject `C=FI,ST=Uusimaa,L=Helsinki,O=Metropolia AMK,OU=Tietohallinto,\
CN=mail.metropolia.fi', issuer `DC=root,DC=amk,DC=pk,CN=pk-PK\
DC01-CA', RSA key 2048 bits, signed using RSA-SHA,\
activated `2010-05-10 07:00:28 UTC', expires `2012-05-09 07:00:28 UTC',\
SHA-1 fingerprint `86003ab3a460ed46c57be01834ea2db13145952f'
- The hostname in the certificate does NOT match '195.148.166.20'

Process imap<1> exited abnormally with code 1

The schools instructions told to accept the certificate warning but I don't
know how to do it with Gnus and that seems to be the problem here.

Any idea how to get the connection to function properly?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems accessing IMAP with TLS
       [not found] <mailman.5.1283436620.15631.info-gnus-english@gnu.org>
@ 2010-09-02 15:13 ` Gijs Hillenius
  0 siblings, 0 replies; 2+ messages in thread
From: Gijs Hillenius @ 2010-09-02 15:13 UTC (permalink / raw)
  To: info-gnus-english

On  2 Sep 2010, Timo Myyrä wrote:

[...]

> - The hostname in the certificate does NOT match '195.148.166.20'

[...]

> Any idea how to get the connection to function properly?

Add this to your set-up in .gnus

 starttls-extra-arguments '("--insecure")

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-02 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02  9:12 Problems accessing IMAP with TLS Timo Myyrä
     [not found] <mailman.5.1283436620.15631.info-gnus-english@gnu.org>
2010-09-02 15:13 ` Gijs Hillenius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).