Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
yinggcy
V2EX  ›  Linux

Ncat --ssl 的使用报错!

  •  
  •   yinggcy · Mar 31, 2019 · 5921 views
    This topic created in 2621 days ago, the information mentioned may be changed or developed.
    Ncat: SSL_CTX_use_certificate(): error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small. QUITTING.
    报这个错误, 百度上搜不到解决方案,只能来问问了.
    谢谢!!!
    4 replies    2019-04-03 12:44:22 +08:00
    yinggcy
        1
    yinggcy  
    OP
       Apr 1, 2019
    没人吗....
    saytesnake
        2
    saytesnake  
       Apr 1, 2019
    用 OpenSSL 重新生成一个长 Key 证书,再跑 ncat。如,

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

    PS:请使用 Google 或 Bing 国际版。
    yinggcy
        3
    yinggcy  
    OP
       Apr 2, 2019
    @saytesnake 别人使用都不需要生成 key, 而且生成后也还是会报错, 难道要使用 --ssl-cret 和 --sll-key? 我想只用 --ssl 来运行
    fcncdn
        4
    fcncdn  
       Apr 3, 2019
    我最近也有这个困扰,后来装了 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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 03:35 · PVG 11:35 · LAX 20:35 · JFK 23:35
    ♥ Do have faith in what you're doing.