Repository navigation
Commit dccd16f
src: don't fail startup on unreadable OpenSSL config
OpenSSL is initialized with CONF_MFLAGS_IGNORE_MISSING_FILE so that a
missing configuration file does not prevent Node.js from starting, but
that flag does not cover a file that exists and cannot be opened.
Running in a container where /etc/ssl is not accessible to the current
user therefore aborts startup with:
OpenSSL configuration error:
...:BIO_new_file:Permission denied:...fopen(/etc/ssl/openssl.cnf, rb)
Ignore the error when the unreadable file is the default configuration
file, that is, one that was not requested via OPENSSL_CONF or
--openssl-config. Errors from an explicitly requested file, and from
the files it includes, stay fatal.
Fixes: #62230
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Orgad Shaneh <orgad.shaneh@audiocodes.com>1 parent bb76938 commit dccd16f
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
1099 | 1101 | | |
1100 | 1102 | | |
1101 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1102 | 1115 | | |
1103 | 1116 | | |
1104 | 1117 | | |
| |||
1229 | 1242 | | |
1230 | 1243 | | |
1231 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1232 | 1254 | | |
1233 | 1255 | | |
1234 | 1256 | | |
| |||
0 commit comments