V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
yinggcy
V2EX  ›  Linux

Ncat --ssl 的使用报错!

  •  
  •   yinggcy · 2019-03-31 13:12:29 +08:00 · 5022 次点击
    这是一个创建于 1824 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Ncat: SSL_CTX_use_certificate(): error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small. QUITTING.
    报这个错误, 百度上搜不到解决方案,只能来问问了.
    谢谢!!!
    4 条回复    2019-04-03 12:44:22 +08:00
    yinggcy
        1
    yinggcy  
    OP
       2019-04-01 11:16:25 +08:00
    没人吗....
    saytesnake
        2
    saytesnake  
       2019-04-01 17:18:43 +08:00
    用 OpenSSL 重新生成一个长 Key 证书,再跑 ncat。如,

    openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem

    PS:请使用 Google 或 Bing 国际版。
    yinggcy
        3
    yinggcy  
    OP
       2019-04-02 19:13:39 +08:00
    @saytesnake 别人使用都不需要生成 key, 而且生成后也还是会报错, 难道要使用 --ssl-cret 和 --sll-key? 我想只用 --ssl 来运行
    fcncdn
        4
    fcncdn  
       2019-04-03 12:44:22 +08:00
    我最近也有这个困扰,后来装了 7.5 版本的 ncat,绕过了这个问题( 7.7,7.6 都有这个问题)

    似乎是 openssl 的问题?现在也不知道怎么解决,我在 ubuntu 下了一个 7.6 的,却是可以用`--ssl`,没有报错

    ref:
    https://nmap.org/dist/
    https://nmap.org/book/inst-linux.html#inst-linux-other
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3146 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:36 · PVG 20:36 · LAX 05:36 · JFK 08:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.