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

Valid SSL certificate for domain/subdomain pointed at a private IP address

· 52CE 我爱测

This is related to a question I saw here where the OP asks whether you can point an A record to a private IP address. So it seems like you can but I have a further question... If I create the subdomain private on mydomain.com and…

问题原文

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

This is related to a question I saw here where the OP asks whether you can point an A record to a private IP address. So it seems like you can but I have a further question...

If I create the subdomain private on mydomain.com and point this to the private ip address 10.10.1.234, can I then use my wildcard SSL certificate for *.mydomain.com so that https://private.mydomain.com has a proper/valid certificate for internal clients?

Hope this makes sense

已采纳解答

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

There is no difference between private (RFC1918) and public IP addresses except that the former are not routable on the Internet and the latter are.

Your DNS zones can point to both these private and public IP addresses as to the DNS — and to routers and other devices — there is no difference between private and public IP addresses. Your SSL/TLS certificates aren't concerned with IP addresses at all and only care about DNS names. Your certificate is valid if it is signed and you use it on the correct website.

Thus to answer your question, your wildcard certificate will work and be valid as it is a wild card certificate for your domain. The IP address pointed to by the A record is of no significance.

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

资料来源与适用范围

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

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

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