SSL:我可以对同一服务器上的 Web 和邮件服务使用相同的 SSL 证书吗?
我的应用程序对远程服务器执行 ajax 调用,该服务器监视多个收件人的传入电子邮件,并在有新电子邮件时检索它们。为了安全起见,我需要使用 HTTPS 进行呼叫,并确保电子邮件检索的安全。
我的问题,如标题所述,我可以在具有相同域的同一服务器上对 Web 和邮件服务使用相同的 SSL 证书吗?
My application performs ajax calls to a remote server that monitors incoming emails for multiple recipients and retrieves them if there are new ones. For security measure, I need to use HTTPS for the calls and also make the email retrieval secure.
My questions, as the title states, can I use the same SSL Certificate both for Web and Mail services on the same server having the same domain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这是可能的。接收证书的客户端将接受它,因为他们收到的证书将与他们正在联系的域名相匹配。
如果推荐的话?如果可能的话,最好为每个接口部署不同的证书。
Yes it is possible. The clients receiving the certificate will accept it, since the certificate they receive will match the domain name they are contacting.
If it is recommended?Well it would be better to deploy different certificate per interface, if it is possible.
在我的邮件服务器中,我使用与 apache、postfix 和 cyrus(针对 imaps/pop3s)相同的 VeriSign 颁发的 x509 证书/私钥,并且工作正常。
某些颁发的证书可能具有特定邮件服务器不喜欢的字段,但除非它是非标准的,否则我看不到流行的 MTA(如 sendmail、postfix、qmail 等)对此感到窒息。
您还必须确保将您的证书/密钥转换为服务期望的格式。Apache、postfix、cyrus 都可以使用 PEM x509 和 RSA 私钥。
One my mail servers, I use the same VeriSign issued x509 certificate/private key for apache, postfix, and cyrus (for imaps/pop3s) and it works fine.
It's possible that some issued certs have fields that a particular mail server won't like, but unless it's something non-standard, I can't see the popular MTA's (like sendmail, postfix, qmail, etc.) choking on it.
You also have to make sure to convert your cert/key to the format the service expects it in. Apache, postfix, cyrus all work with PEM x509 and RSA private key.