【问题标题】:ssl error when trying to connect to a http server (apache)尝试连接到 http 服务器 (apache) 时出现 ssl 错误
【发布时间】:2015-05-28 02:34:48
【问题描述】:

我有一个使用 ssl 连接到 apache 服务器的 https 客户端。

当客户端尝试通过 https 连接到 apache 服务器时,出现以下错误:

SSL Library Error: 336151570 error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate Subject CN in certificate not server name or identical to CA!?

可能是什么问题以及如何解决?

【问题讨论】:

  • 在 ssl 连接中,您应该连接到您在 Ca 服务器生成的证书上“颁发给”的同一个 cn

标签: linux apache ssl openssl ssl-certificate


【解决方案1】:

证书中的主题 CN 不是服务器名称或与 CA 相同!?

您的证书与您访问的主机名不匹配。对照 [SSLLabs]( https://www.ssllabs.com/ssltest/analyze.html)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-11
    • 1970-01-01
    • 2012-10-04
    • 2021-03-26
    相关资源
    最近更新 更多