如何将 SSL 添加到指向不同服务器的子域? [英] How to add SSL to subdomain that points to a different server?

查看:39
本文介绍了如何将 SSL 添加到指向不同服务器的子域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有单域 SSL 证书的网络服务器:https://secure.example.com

I've got a webserver that has a single domain SSL certificate: https://secure.example.com

我还有几个指向不同服务器的子域:

I also have a couple of subdomains that point to different servers:

  • http://www.example.com, which points to the main server.
  • http://subdomain.example.com which points to a completely different server.

将 SSL 添加到子域的最佳方法是什么 https://subdomain.example.com

What is the best way to add SSL to the subdomain https://subdomain.example.com

是否可以使用通配符证书配置类似的内容?还是另外购买单域证书安装在单独的服务器上更好?

Is it possible to configure something like this with a wildcard certificate? Or is it better to purchase another single-domain certificate and install it on the seperate server?

推荐答案

您可以获得通配符证书,但这可能比您需要的更昂贵,并且您需要将您的私钥复制到每个服务器 - 这确实是除非您是加密专家,否则不推荐.您最好为另外两台机器再购买两个证书.

You can get a wildcard cert but that is probably more expensive than you need and you'd need to copy your private key to each server -- which really is not recommended unless you are a crypto expert. You are better off simply purchasing two more certs for the two additional machines.

这篇关于如何将 SSL 添加到指向不同服务器的子域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆