Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: timo.myyra@gmail.com (Timo Myyrä)
To: info-gnus-english@gnu.org
Subject: Problems accessing IMAP with TLS
Date: Thu, 02 Sep 2010 12:12:31 +0300	[thread overview]
Message-ID: <87occgik5c.fsf@mandrake.lan> (raw)

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?

             reply	other threads:[~2010-09-02  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02  9:12 Timo Myyrä [this message]
     [not found] <mailman.5.1283436620.15631.info-gnus-english@gnu.org>
2010-09-02 15:13 ` Gijs Hillenius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87occgik5c.fsf@mandrake.lan \
    --to=timo.myyra@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).