AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1051729
Accepted
Ben Franske
Ben Franske
Asked: 2021-01-30 16:58:11 +0800 CST2021-01-30 16:58:11 +0800 CST 2021-01-30 16:58:11 +0800 CST

对 Firefox 中的 SSL_ERROR_NO_CYPHER_OVERLAP 进行故障排除

  • 772

我正在尝试在Network Engineering Stack Exchange上获得一些帮助,但他们真的想责怪浏览器(请参阅那里的评论)。我正在寻找一个不修改浏览器设置的修复程序(尽管我愿意修改它们以确定问题)并且仍然允许使用自签名证书。我在其他服务器上与 Firefox 一起使用了许多自签名证书,并且很清楚 Firefox 如何处理自签名证书错误,这不是一回事,Cisco 路由器不喜欢 TLS 连接的其他事情Firefox 提出的选项。

无论如何...我有一个运行 IOS XE 版本 16.09.04 的 Cisco ISR4331/K9,我已经配置了主机名、域名和生成的 2048 位 RSA 密钥,我还验证了时钟设置是否正确。

配置后ip http secure-server,我尝试从运行 Firefox 83.0 的 PC 访问路由器

当 HTTP 访问正常时,HTTPS 在 Firefox 中遇到错误“SSL_ERROR_NO_CYPHER_OVERLAP”。然而sh ip http server secure status返回:

HTTP secure server status: Enabled
HTTP secure server port: 443
HTTP secure server ciphersuite:  3des-ede-cbc-sha aes-128-cbc-sha
        aes-256-cbc-sha dhe-aes-128-cbc-sha ecdhe-rsa-3des-ede-cbc-sha
        rsa-aes-cbc-sha2 rsa-aes-gcm-sha2 dhe-aes-cbc-sha2 dhe-aes-gcm-sha2
        ecdhe-rsa-aes-cbc-sha2 ecdhe-rsa-aes-gcm-sha2 ecdhe-ecdsa-aes-gcm-sha2
HTTP secure server TLS version:  TLSv1.2 TLSv1.1
HTTP secure server client authentication: Disabled
HTTP secure server PIV authentication: Disabled
HTTP secure server trustpoint: 
HTTP secure server peer validation trustpoint: 
HTTP secure server ECDHE curve: secp256r1
HTTP secure server active session modules: ALL

这似乎是一个完全可以接受的 Firefox 密码套件列表。

在 Wireshak 中查看时,路由器似乎在来自客户端的 TLSv1.2 Hello 消息之后立即向浏览器返回 TLSv1.2 致命握手错误消息。

debug ip http all在此握手期间,我在使用的路由器上根本没有收到任何消息。

知道我在这里想念什么吗?

请注意,这是我用于复制/调试此问题的实验室路由器,因此缺少大多数配置。路由器配置:

routertest#sh run
Building configuration...


Current configuration : 1787 bytes
!
! Last configuration change at 18:22:01 UTC Fri Jan 29 2021
!
version 16.9
service timestamps debug datetime msec
service timestamps log datetime msec
platform qfp utilization monitor load 80
no platform punt-keepalive disable-kernel-core
!
hostname routertest
!
boot-start-marker
boot-end-marker
!
!
vrf definition Mgmt-intf
 !
 address-family ipv4
 exit-address-family
 !
 address-family ipv6
 exit-address-family
!
!
no aaa new-model
!
no ip domain lookup
ip domain name test.com
!
!
!
login on-success log
!
!
!
!
!
!
!
subscriber templating
! 
! 
! 
! 
!         
multilink bundle-name authenticated
!
!
!
crypto pki trustpoint TP-self-signed-886488406
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-886488406
 revocation-check none
 rsakeypair TP-self-signed-886488406
!
!
crypto pki certificate chain TP-self-signed-886488406
!
license udi pid ISR4331/K9 sn FDO19370HXL
license boot level securityk9
no license smart enable
diagnostic bootup level minimal
!
spanning-tree extend system-id
!
!
!
!         
redundancy
 mode none
!
!
!
!
!
!
! 
!
!
!
!
!
!
!
!
!
!
! 
! 
!
!         
interface GigabitEthernet0/0/0
 no ip address
 shutdown
 negotiation auto
!
interface GigabitEthernet0/0/1
 ip address 10.30.0.1 255.255.255.0
 negotiation auto
!
interface GigabitEthernet0/0/2
 no ip address
 shutdown
 negotiation auto
!
interface Serial0/1/0
 no ip address
!
interface Serial0/1/1
 no ip address
!
interface GigabitEthernet0
 vrf forwarding Mgmt-intf
 no ip address
 shutdown
 negotiation auto
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip tftp source-interface GigabitEthernet0
!
!
!
!
!
!
control-plane
!
!
line con 0
 logging synchronous
 transport input none
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 login
!
!
!
!
!
!
end
firefox cisco ios
  • 1 1 个回答
  • 745 Views

1 个回答

  • Voted
  1. Best Answer
    Ben Franske
    2021-01-31T08:20:25+08:002021-01-31T08:20:25+08:00

    经过广泛的测试,我能够弄清楚这一点。据我所知,思科没有正式记录它,例如他们的HTTP 服务配置指南仍然将其中一些步骤列为可选步骤,但似乎在较新的硬件或软件上,可选步骤之一已成为强制性的。

    特别是,启用 HTTPS 时,较旧的 Cisco 设备会自动将 HTTPS 服务器链接到自签名信任点。尽管启用 HTTPS 仍会为您生成密钥、证书和信任点,但 HTTPS 服务器不再自动使用该信任点进行连接,因此您必须通过ip http secure-trustpoint命令手动告诉 HTTPS 服务器使用正确的信任点。

    我怀疑这是一个无意中引入的错误,因为它仍然会自动为您完成其他所有事情,包括创建信任点,HTTPS 服务器只是不会自动选择它创建的信任点作为要使用的信任点。

    因此,如果您ip http secure-server在路由器上运行命令后仔细查看终端日志,您将看到如下输出:

    r2(config)#ip http secure-server
    CRYPTO_PKI: setting trustpoint policy TP-self-signed-3189949043 to use keypair TP-self-signed-3189949043% Generating 2048 bit RSA keys, keys will be non-exportable...
    [OK] (elapsed time was 5 seconds)
    *Jan 30 09:50:16.152: %CRYPTO_ENGINE-5-KEY_ADDITION: A key named TP-self-signed-3189949043 has been generated or imported by crypto-engine
    *Jan 30 09:50:16.243: %PKI-4-NOCONFIGAUTOSAVE: Configuration was modified.  Issue "write memory" to save new IOS PKI configuration
    

    这将为您提供创建的信任点的名称,在我的例子中是“TP-self-signed-3189949043”。

    请注意,如果您在启用 HTTPS 服务器期间错过了此消息,您可以在事后在路由器的配置中找到信任点。

    然后,新需要的步骤是告诉 HTTPS 服务器使用该ip http secure-trustpoint TP-self-signed-3189949043命令使用该信任点(将信任点名称替换为您的名称)。

    完成此操作后,浏览器将能够使用信任自签名证书的正常过程连接到 HTTPS 服务器。

    请注意,这不太可能在生产环境中发生,因为如果您使用由 CA 签名的证书(而不是自签名证书),则必须设置信任点。

    • 0

相关问题

  • 如何在 opensuse 机器上启用 jconsole?

  • Firefox 执行从具有权限删除的根执行脚本失败

  • 背景颜色未显示在网络浏览器中

  • Firefox 打包以包含用于网络安装的插件

  • Typo3 网站中的会话超时,无法使用 Mozilla Firefox 打开

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve