【问题标题】:SSL certificate for mail server on root domain vs wildcard on subdomain根域上邮件服务器的 SSL 证书与子域上的通配符
【发布时间】:2013-11-06 20:22:53
【问题描述】:

我在 Digital Ocean 的 Ubuntu 12.04 x64 Apache/iRedMail 服务器上安装了通用 RapidSSL 证书。它在浏览器中验证正常,当我使用 RapidSSL 的检查器工具时。

但是,此服务器专门用于邮件,当我在 Mail (Mac OS) 或我的 iPhone 等上设置帐户时,我必须进行安全异常,因为它给了我错误“此根证书不被信任。”由于某种原因,它显示的位置是中国广东。

我与 eNom 的支持人员(我在那里购买了 SSL 证书)进行了交谈,他提到使用根域而不是子域来处理邮件可能会出现问题,并且我可能需要一个通配符证书。这个建议对我来说没有逻辑意义。

我的一般问题是:在根域上设置具有通用 SSL 证书的邮件服务器与在具有通配符 SSL 证书的子域上设置邮件服务器有什么区别?

或者是我的 Apache 配置有问题?

谢谢! :)


更新:

所以现在我做了以下事情:

在 /etc/dovecot/dovecot.conf 中

改变了:

ssl_cert = </etc/ssl/certs/iRedMail_CA.pem
ssl_key = </etc/ssl/private/iRedMail.key

收件人:

ssl_cert = </etc/ssl/certificate.crt
ssl_key = </etc/ssl/certificate.key
ssl_ca = </etc/ssl/intermediate.crt

然后在/etc/postfix/main.cf中

我变了:

smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key

收件人:

smtpd_tls_cert_file = /etc/ssl/certs/certificate.crt
smtpd_tls_key_file = /etc/ssl/certificate.key
smtpd_tls_CAfile = /etc/ssl/intermeidate.crt

然后,我重新启动服务器。 Apache 挂了,得到这个错误:

root@host:~# service apache2 status
Apache2 is NOT running.
root@host:~# service apache2 restart
* Restarting web server apache2
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
   ...fail!
root@host:~# 

那么,我这样做:

netstat -ltnp | grep ':80'

结果:

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1464/apache2 

然后我这样做:

kill -9 1464

之后 Apache 重新启动正常,但 roundcube 不让我登录,我根本无法连接到 IMAP 或 SMTP。

鸽舍日志说:

Nov 07 04:31:43 imap-login: Error: SSL private key file is password protected, but password is not given

11 月 7 日 04:31:43 imap-login:致命:无法解析私有 ssl_key


再次更新:

Dovecot 现在一切正常。必须执行以下操作,因为我的证书是用密码加密的:

杀死鸽子

鸽舍-p

然后输入我的密码。

现在我的问题是 Postfix,它根本不起作用。我假设它不喜欢受密码保护的密钥。

【问题讨论】:

    标签: apache email ssl subdomain wildcard


    【解决方案1】:

    您需要配置 dovecot 以使用 SSL。

    您已为 apache 安装和配置 SSL,IMAP/POP/SMTP 连接不由 apache 处理。

    不,使用域和子域没有区别。

    How to setup iRedmail to use SSL

    【讨论】:

    • 谢谢。这就说得通了!不过还是有问题。我编辑了问题。
    • 你是对的!基本上我需要更改 Dovecot 和 Postfix 中的配置。谢谢!
    猜你喜欢
    • 2012-11-14
    • 1970-01-01
    • 2019-01-17
    • 2015-02-14
    • 2019-06-05
    • 1970-01-01
    • 1970-01-01
    • 2013-10-22
    • 2017-04-30
    相关资源
    最近更新 更多