CentOS 5: Funktion des Cyrus IMAPS-Servers testen
Die folgende Vorgehensweise beschreibt wie Sie die Funktionsfähigkeit eines mit SSL abgesichterten IMAP-Servers testen können.
Mit dem folgenden Befehl bauen Sie eine Verbindung zum IMAPS-Server auf.
[root@centos5 ~]# openssl s_client -connect mail.home.lan:993
CONNECTED(00000003)
depth=0 /C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
verify return:1
---
Certificate chain
0 s:/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
i:/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDmTCCAwKgAwIBAgIJAJOt9lldZN8jMA0GCSqGSIb3DQEBBQUAMIGQMQswCQYD
[...]
TSC5/nn1C1YcoJeAMPKksdg4hVF4lHEa1EJzpQwrXEjaRNDybl+omM0ykUKra7l+
QfK/Sw0V/OdiL4N+Fw==
-----END CERTIFICATE-----
subject=/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
issuer=/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
---
No client certificate CA names sent
---
SSL handshake has read 1087 bytes and written 316 bytes
---
New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : AES256-SHA
Session-ID: 2D0DD179804B788424E64BA569FD0147D9667D67FFAFE0112078C1EFB7104A31
Session-ID-ctx:
Master-Key: A22D19A8B1E11F39FF52F118422C76FB7CC774BA8F8963BC87E555F6E58763048E9C26843D5325D2A4D32060E745BFD1
Key-Arg : None
Krb5 Principal: None
Start Time: 1262790510
Timeout : 300 (sec)
Verify return code: 18 (self signed certificate)
---
* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] mail.home.lan Cyrus IMAP4 v2.3.7-Invoca-RPM-2.3.7-7.el5_4.3 server ready
CONNECTED(00000003)
depth=0 /C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
verify return:1
---
Certificate chain
0 s:/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
i:/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDmTCCAwKgAwIBAgIJAJOt9lldZN8jMA0GCSqGSIb3DQEBBQUAMIGQMQswCQYD
[...]
TSC5/nn1C1YcoJeAMPKksdg4hVF4lHEa1EJzpQwrXEjaRNDybl+omM0ykUKra7l+
QfK/Sw0V/OdiL4N+Fw==
-----END CERTIFICATE-----
subject=/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
issuer=/C=DE/ST=Bayern/L=Woerth an der Donau/O=Privat/OU=IT/CN=mail.home.lan/emailAddress=root@home.lan
---
No client certificate CA names sent
---
SSL handshake has read 1087 bytes and written 316 bytes
---
New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : AES256-SHA
Session-ID: 2D0DD179804B788424E64BA569FD0147D9667D67FFAFE0112078C1EFB7104A31
Session-ID-ctx:
Master-Key: A22D19A8B1E11F39FF52F118422C76FB7CC774BA8F8963BC87E555F6E58763048E9C26843D5325D2A4D32060E745BFD1
Key-Arg : None
Krb5 Principal: None
Start Time: 1262790510
Timeout : 300 (sec)
Verify return code: 18 (self signed certificate)
---
* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] mail.home.lan Cyrus IMAP4 v2.3.7-Invoca-RPM-2.3.7-7.el5_4.3 server ready
Von jetzt an stehen Ihnen die bereits auf der Seite CentOS 5: Funktion des Cyrus IMAP-Servers mit Telnet testen beschriebenen Befehle zur Verfügung.
Mit dem Befehl logout beenden Sie die Verbindung wieder.
. logout
* BYE LOGOUT received
. OK Completed
read:errno=0
* BYE LOGOUT received
. OK Completed
read:errno=0
Dieser Eintrag wurde am 06.01.2010 erstellt und zuletzt am 24.01.2016 bearbeitet.
Direkter Link zu dieser Seite: http://www.gtkdb.de/index_33_833.html
[ Zur Startseite ] [ Zur Kategorie ]
© 2004-2021 by Georg Kainzbauer