[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

starttls + gnutls-cli problems

From: Nikolaus Rath
Subject: starttls + gnutls-cli problems
Date: Tue, 03 Apr 2012 09:53:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)


I have a problem with accessing an IMAP server using starttls. My select
method is

 gnus-secondary-select-methods '(
                                 (nnimap ""
                                         (nnimap-server-address "")
                                         (nnimap-stream starttls)
                                         (nnimap-logout-timeout 1.0)
                                         (nnir-search-engine imap)))

When I attempt to connect to this server, I get the following in

| imap: Connecting to
| Opening STARTTLS connection to `'...done
| imap: Connecting with STARTTLS...
| STARTTLS negotiation failed: *** Starting TLS handshake
| - Peer's certificate issuer is unknown
| - Peer's certificate is NOT trusted
| - The hostname in the certificate matches ''.
| *** Verifying server certificate failed...
| *** Fatal error: Error in the certificate.
| *** Handshake has failed
| Process imap<2> exited abnormally with code 1
| imap: Connecting with STARTTLS...failed
| imap: Connecting to
| Couldn't open nnimap:

However, if I manually execute gnutls-cli, everything works fine:

| # gnutls-cli -s -p 143
| WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-Ak9iJF/pkcs11: No 
such file or directory
| Processed 152 CA certificate(s).
| Resolving ''...
| Connecting to ''...
| - Simple Client Mode:
| * OK ebox Cyrus IMAP4 v2.2.13-Debian-2.2.13-19squeeze3build0.10.04.1 server 

Does anyone have a suggestion of how to debug this further? Is there a
way to show the exact commandline that starttls is using to start



 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

reply via email to

[Prev in Thread] Current Thread [Next in Thread]