Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

树莓派 - SSL routines:SSL_CTX_use_certificate:ee key too small #52

Open
mymmoonoa opened this issue Jun 14, 2021 · 4 comments · May be fixed by #65
Open

树莓派 - SSL routines:SSL_CTX_use_certificate:ee key too small #52

mymmoonoa opened this issue Jun 14, 2021 · 4 comments · May be fixed by #65

Comments

@mymmoonoa
Copy link

之前树莓派还能用
新装遇到错误

root@pi4-001:/home/pi# anywhere -p 8080 -s
_tls_common.js:135
      c.context.setCert(cert);
                ^

Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
    at Object.createSecureContext (_tls_common.js:135:17)
    at Server (_tls_wrap.js:903:27)
    at new Server (https.js:62:14)
    at Object.createServer (https.js:85:10)
    at Object.<anonymous> (/root/.nvm/versions/node/v10.23.0/lib/node_modules/anywhere/bin/anywhere:131:7)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

应该是和 jfromaniello/selfsigned#33 类似,key需要改成2048,还望作者可以更新下

@JacksonTian
Copy link
Owner

可以发一个 PR 吗。

illuspas added a commit to illuspas/anywhere that referenced this issue Dec 19, 2023
@O-Connects
Copy link

MacOS也不行

@hstarorg
Copy link
Contributor

hstarorg commented Mar 17, 2024

这个问题是 node 版本升级,依赖的 openssl 对秘钥强度有新的要求,稍后我提一个PR。

证书生成命令:

sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout key.pem -out cert.pem

@hstarorg
Copy link
Contributor

#68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants