博客 > 如何核实IMAP/POP3/SMTP协议的SSL加密是否有效且是否安装了正确的证书
浏览量:10439次评论:0次
作者:Ray时间:2019-09-06 06:07:32
适用版本:
Plesk Onyx for Linux
Plesk 12.5 for Linux
Plesk 12.0 for Linux
Plesk 11.x for Linux
如何核实IMAP/POP3/SMTP协议的SSL加密是否有效且是否安装了正确的证书?
具体步骤如下:
首先,使用SSH连接服务器。
再者,要核实SSL证书,请使用下面的命令:
1. 通过SSL加密的IMAP协议会默认使用 993端口:
a. 使用openssl连接邮件服务器::
# openssl s_client -showcerts -connect mail.example.com:993
b. 检查输出确保显示的是有效的证书:
Server certificate
subject=/OU=Domain Control Validated/OU=PositiveSSL/CN=mail.example.com
issuer=/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=PositiveSSL CA 2
c. 务必确保收到IMAP服务器的响应:
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=PLAIN IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
2. 通过SSL加密的POP3协议会默认使用995端口:
a. 使用openssl连接邮件服务器::
# openssl s_client -showcerts -connect mail.example.com:995
b. 检查输出确保显示的是有效的证书:
Server certificate
subject=/OU=Domain Control Validated/OU=PositiveSSL/CN=mail.example.com
issuer=/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=PositiveSSL CA 2
c. 务必确保收到POP3服务器的响应:
+OK Hello there. <[email protected]>
3. 通过SSL加密的SMTP协议会默认使465端口:
a. 使用openssl连接邮件服务器:
# openssl s_client -showcerts -connect mail.example.com:465
b. 检查输出确保显示的是有效的证书:
Server certificate
subject=/OU=Domain Control Validated/OU=PositiveSSL/CN=mail.example.com
issuer=/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=PositiveSSL CA 2
c. 务必确保接收到SMTP服务器的响应:
220 mail.example.com ESMTP Postfix
相关文章推荐
2025-04-30 15:26:27
2025-04-29 15:28:18
2025-04-23 15:17:56
2025-04-16 15:02:00
2025-04-09 15:31:29
热门工具
标签选择
阅读排行
我的评论
还未登录?点击登录