--use-system-ca fails to start with bad OPENSSL_CONF set
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- javascript, node.js
- Ambito
- security
Direzione di ricerca
Inizia riproducendo il comando Windows PowerShell con OPENSSL_CONF impostato su "c:" e --use-system-ca. Il report non indica alcun file sorgente né alcun punto di ingresso dei test; segui la gestione all'avvio di queste opzioni in Node e verifica che un percorso di configurazione non valido non impedisca più l'avvio, mentre il caricamento dei certificati continui a funzionare con impostazioni valide.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version
26.1.0 (also seen with 22.22.2)
Platform
Microsoft Windows NT 10.0.26200.0 x64
Only windows has been tested
Subsystem
No response
What steps will reproduce the bug?
In powershell
$env:OPENSSL_CONF="c:"
node --use-system-ca
How often does it reproduce? Is there a required condition?
This happens consistently when there is a bad OPENSSL_CONF variable set
What is the expected behavior? Why is that the expected behavior?
I would expect it to fail to load some certificates/configs, but succeed with the good items in the variables and launch correctly.
What do you see instead?
PS C:\Users\farad> $env:OPENSSL_CONF="c:"
PS C:\Users\farad> node --use-system-ca
C:\Users\farad\AppData\Local\fnm_multishells\11396_1778525811252\node.exe: OpenSSL configuration error:
44190000:error:80000005:system library:BIO_new_file:Input/output error:openssl\crypto\bio\bss_file.c:67:calling fopen(c:, rb)
And node exits
Additional information
Related #58990
I can appreciate this may be openssl behaviour that cannot be controlled.
In our application we are using nodejs binaries to spawn some child processes. We want to set this flag to make the use of corporate deployed certificates easier, but have encountered an application which sets OPENSSL_CONF to a directory and causes node to fail to start.
This also appears to affect binaries built with @yao/pkg
I have checked that this is not unique to being installed through fnm
- Lingua principale
- JavaScript
- Stelle
- 122k
- Fork
- 37.4k
- Merge medio
- 4g 3h
- PR unite (30g)
- 272
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nodejs/node
-
doc
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
build
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
avniproject/avni-client#2135 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bevyengine/bevy-website#2595 ·
-
ecosystem wording
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
matrix-org/matrix.org#3649 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
vadimdemedes/ink#1029 ·