大网数据广告活动
服务器运维问答

Can I specify multiple hostnames in a single certificate?

· 52CE 我爱测

I have a cloudera managed Hadoop cluster where I had installed SSL certificates on all servers. Unfortunately, the host name on the servers are not the same as the one configured over dns. When run hostname -f it gives: server1.x…

问题原文

原帖链接 · orak · CC BY-SA 4.0

I have a cloudera managed Hadoop cluster where I had installed SSL certificates on all servers. Unfortunately, the host name on the servers are not the same as the one configured over dns.

When run hostname -f it gives: server1.x But when I do nslookup from a client machine i get: server1.x.y

Obviously accessing server1.x.y from the browser gives identity error since it trusts only server1.x I was wondering if I could add server1.x.y in the Subject Alternative Name and would the browser start trusting the certificate?

已采纳解答

原帖链接 · Håkan Lindqvist · CC BY-SA 4.0

The purpose of the SAN extension is to have a (typed) list of subject names that are all considered valid. You could use that to add any additional names that you want clients to be able to use.

However, it sounds like you don't actually need multiple names in this scenario? It sounds like only one of those two names actually work in practice (the one that exists in DNS) and then it would probably be better to just clean up your configuration such that you consistently only use one of the names instead of having a confusing mix of both.
I think such a cleanup appears much preferable compared to committing further to the confusion by adding both names in SAN.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-12-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。