You are not logged in.

#1 2010-01-16 00:58:29

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

mutt ignores saved certificate

I have a small problem with mutt.
Everytime it connects to the mail-server it complains about the certificate, despite saving it multiple times.

set certificate_file="~/.mutt/certs"

It saves the certificate correctly so I don't know what the problem is?
The exact same .muttrc works flawless on ubuntu.

(I'm using the mutt-with-sidebar package from AUR)

Edit: At the top it says:     Mutt: SSL Certificate check (certificate 0 of 0 in chain)

Last edited by WiLLiE (2010-01-16 01:00:06)

Offline

#2 2010-01-16 01:43:16

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: mutt ignores saved certificate

You can try this...it's what I have set in my muttrc and seems to do the trick:

unset ssl_usesystemcerts    # toggle global cert checking (good for saving local certs)

thayer williams ~ cinderwick.ca

Offline

#3 2010-01-16 02:06:10

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: mutt ignores saved certificate

Nope, still get the same error hmm
Perhaps it's something related to that specific build?

Offline

#4 2010-01-16 16:11:27

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: mutt ignores saved certificate

Could be I suppose...when in doubt, try the official build.


thayer williams ~ cinderwick.ca

Offline

#5 2010-01-16 21:05:48

polymetr
Member
Registered: 2009-12-04
Posts: 40

Re: mutt ignores saved certificate

I have a same problem. I can not remember as that was in gentoo, but there it was working.
I just recompiled mutt with one patch, I used ABS without did any changes. And a config file is
same as was many month. Will investigate.

Offline

#6 2010-06-16 04:36:10

ptmkenny
Member
From: Tokyo
Registered: 2010-06-11
Posts: 14

Re: mutt ignores saved certificate

Is there a solution to this problem?  I'm using the latest version (.1.5.20) of mutt from the official repository and I still have the same issue.

My .muttrc works without any problem in Ubuntu, but ignores my certificate file in Arch.  If I save the certificate multiple times, it adds multiple certificates to the certs file, but it doesn't seem able to read them.

Any help would be greatly appreciated.

Offline

#7 2010-06-21 06:17:36

ptmkenny
Member
From: Tokyo
Registered: 2010-06-11
Posts: 14

Re: mutt ignores saved certificate

I managed to fix this by deleting the certificates file used in Ubuntu and recreating it from scratch.  Also, for one SSL certificate, I had to re-import it from the host; mutt was unable to handle it automatically.

Offline

#8 2011-09-08 15:13:43

erick.red
Member
From: Miami, FL, USA
Registered: 2007-06-16
Posts: 41
Website

Re: mutt ignores saved certificate

WiLLiE wrote:

I have a small problem with mutt.
Everytime it connects to the mail-server it complains about the certificate, despite saving it multiple times.

set certificate_file="~/.mutt/certs"

It saves the certificate correctly so I don't know what the problem is?
The exact same .muttrc works flawless on ubuntu.

(I'm using the mutt-with-sidebar package from AUR)

Edit: At the top it says:     Mutt: SSL Certificate check (certificate 0 of 0 in chain)

As of today, it still happens. I'm using Arch 32 bits in one of my pc, And I tried mutt, and the same problems happens just like described.

[Solved] at leats for me. I realize yesterday what the certificate was issues to the server a.b.c and in my config I

set spoolfile="imaps://john.doe@gamil.com:pass4john@a/"

And was failing to recognize that server "a" was the same as "a.b.c" so I changed my config and it's working now

Last edited by erick.red (2011-09-16 13:19:06)


Carpe diem, quam minimum credula postero

Offline

#9 2012-12-18 13:27:20

calixtine
Member
From: Barcelona, Catalunya
Registered: 2012-12-17
Posts: 3

Re: mutt ignores saved certificate

I have this problem as well. I have a standard mutt config on my 2 other machines (both Ubuntu) that both work without this error, The root cause is that my e-mail provider provides a certificate for mail.domain.com but requires me to connect to imaps.mail.domain.com for IMAPS. In theory the solution is to just save the certificate when asked to wherever "set certificate_file=" points to. Mutt saves it and as above, on the next app restart, asks for the cert again, ignoring the original, appending the new cert to the end of the file on acceptance.

I have found no sane solution. To give myself some peace I had to edit /etc/hosts adding the IP address of the IMAP server and the domain of the certificate and change muttrc so that it only uses the domain of the cert, that way mutt doesn't complain.

meh, ugly.

Offline

#10 2016-04-06 00:15:55

rusch
Member
Registered: 2015-06-28
Posts: 7

Re: mutt ignores saved certificate

# If set (the default), mutt will not automatically accept a server certificate whose host name does not match the host used in your folder URL. You should only unset this for particular known hosts, using the function.

unset ssl_verify_host

thats the solution

Last edited by rusch (2016-04-06 00:16:15)

Offline

#11 2016-04-06 00:23:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: mutt ignores saved certificate


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB