LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2011, 06:33 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
A question about imap over ssl...


I just setup dovecot to use imap. I'm using the same cert and key that I'm using on Postfix smtp over ssl. It's a self signed cert. After running this
Code:
openssl s_client -starttls imap -connect localhost:993
I get this
Code:
CONNECTED(00000003)
Nothing else is printed. And I'm not able to 'a login user pass.'
Shouldn't I be seeing something like this
Code:
CONNECTED(00000003)
depth=0 /C=DE/ST=BW/L=City/O=HomeServer 
GmbH/OU=WebHosting/CN=XYZ.com/emailAddress=admin <at> XYZ.com
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=DE/ST=BW/L=City/O=HomeServer 
GmbH/OU=WebHosting/CN=XYZ.com/emailAddress=admin <at> XYZ.com
verify return:1
---
Certificate chain
0 s:/C=DE/ST=BW/L=City/O=HomeServer 
GmbH/OU=WebHosting/CN=XYZ.com/emailAddress=admin <at> XYZ.com
    i:/C=DE/ST=BW/L=City/O=HomeServer 
GmbH/OU=WebHosting/CN=XYZ.com/emailAddress=admin <at> XYZ.com
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIC6TCCAlKgAwIBAgIJAN4Jfaj9QgEhMA0GCSqGSIb3DQEBBQUAMIGqMQswCQYD
VQQGEwJERTEbMBkGA1UECBMSQmFkZW4tV3VlcnR0ZW1iZXJnMREwDwYDVQQHEwhO
ZXVicm9ubjEWMBQGA1UEChMNTmV0T2NlYW4gR21iSDETMBEGA1UECxMKV2ViSG9z
dGluZzEYMBYGA1UEAxMPc2VydmVyLm5ldG9jZWFuMSQwIgYJKoZIhvcNAQkBFhVh
ZG1pbkBzZXJ2ZXIubmV0b2NlYW4wHhcNMTAwNzExMTgwMzQ4WhcNMzAwNzA2MTgw
MzQ4WjCBqjELMAkGA1UEBhMCREUxGzAZBgNVBAgTEkJhZGVuLVd1ZXJ0dGVtYmVy
It's almost as if it can't find the cert and key. I made sure that the cert has 444 and key has 400 permissions and owned by root.

/etc/dovecot.conf
Code:
protocols = imap imaps
ssl_disable = no
disable_plaintext_auth = yes
syslog_facility = mail
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
verbose_ssl = yes
mail_location = mbox:~/mbox:INBOX=/var/mail/%u
auth_verbose = yes
auth_debug = yes
Any ideas on what would cause this?

Last edited by trist007; 03-20-2011 at 07:19 PM.
 
Old 03-20-2011, 06:44 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
*shrug* that's how it works for me. I think it's working.

Edit: you edited your post after my post and added a ton of info. That was rude.

Last edited by AlucardZero; 03-21-2011 at 11:52 AM.
 
Old 03-21-2011, 11:35 AM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Original Poster
Rep: Reputation: 69
bump
 
Old 03-21-2011, 06:57 PM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Original Poster
Rep: Reputation: 69
Haha it was working all along. I was using this command to test it.
Code:
openssl s_client -starttls imap -connect localhost:993
But I should've been using this since imaps does not have the starttls command.
Code:
openssl s_client -connect localhost:993
I feel stupid hehe.

Last edited by trist007; 03-21-2011 at 07:23 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IMAP SSL E-mail check timd Linux - Newbie 2 02-03-2011 04:20 PM
cyrus-imap SSL problem tikit Linux - Software 0 01-06-2011 05:28 AM
Compiling php with imap and imap-ssl the_ajp Linux - Software 1 04-18-2007 07:49 AM
Integrate IMAP and POP with SSL dominant Linux - Software 1 01-24-2004 02:51 PM
PHP-IMAP SSL Package Debfan Debian 0 10-08-2003 09:39 AM


All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration